Class InferredTypeIndicator
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.InferredTypeIndicator
-
- All Implemented Interfaces:
IJvmTypeReferenceProvider
public class InferredTypeIndicator extends java.lang.Object implements IJvmTypeReferenceProvider
This is atype reference providerthat can be used to describe an infered type reference during the model inference. Clients will usually useisInferred(JvmTypeReference)andresolveTo(JvmTypeReference, JvmTypeReference).
-
-
Constructor Summary
Constructors Constructor Description InferredTypeIndicator()InferredTypeIndicator(XExpression expression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XExpressiongetExpression()org.eclipse.xtext.common.types.JvmTypeReferencegetTypeReference(XComputedTypeReferenceImplCustom context)static booleanisInferred(org.eclipse.xtext.common.types.JvmTypeReference typeReference)static voidresolveTo(org.eclipse.xtext.common.types.JvmTypeReference inferred, org.eclipse.xtext.common.types.JvmTypeReference resolved)java.lang.StringtoString()
-
-
-
Constructor Detail
-
InferredTypeIndicator
public InferredTypeIndicator(XExpression expression)
-
InferredTypeIndicator
public InferredTypeIndicator()
-
-
Method Detail
-
isInferred
public static boolean isInferred(org.eclipse.xtext.common.types.JvmTypeReference typeReference)
-
resolveTo
public static void resolveTo(org.eclipse.xtext.common.types.JvmTypeReference inferred, org.eclipse.xtext.common.types.JvmTypeReference resolved)
-
getTypeReference
public org.eclipse.xtext.common.types.JvmTypeReference getTypeReference(XComputedTypeReferenceImplCustom context)
- Specified by:
getTypeReferencein interfaceIJvmTypeReferenceProvider
-
getExpression
public XExpression getExpression()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-