Class NoTypeResult
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.NoTypeResult
-
- All Implemented Interfaces:
ITypeComputationResult
public class NoTypeResult extends java.lang.Object implements ITypeComputationResult
-
-
Constructor Summary
Constructors Constructor Description NoTypeResult(org.eclipse.emf.ecore.EObject context, ITypeReferenceOwner owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LightweightTypeReferencegetActualExpressionType()Returns the type of the expression (if known).intgetCheckedConformanceFlags()Conformance information about the actual expression type and the expectation.java.util.EnumSet<ConformanceHint>getCheckedConformanceHints()Conformance information about the actual expression type and the expectation.intgetConformanceFlags()Conformance information about the actual expression type and the expectation.java.util.EnumSet<ConformanceHint>getConformanceHints()Conformance information about the actual expression type and the expectation.LightweightTypeReferencegetExpectedExpressionType()Returns the type of the expectation (if any).LightweightTypeReferencegetExpectedReturnType()Returns the type of the return expectation (if any).XExpressiongetExpression()The expression that is associated with this result.LightweightTypeReferencegetReturnType()Returns the return type of the expression (if known).java.lang.StringtoString()
-
-
-
Constructor Detail
-
NoTypeResult
public NoTypeResult(org.eclipse.emf.ecore.EObject context, ITypeReferenceOwner owner)
-
-
Method Detail
-
getReturnType
public LightweightTypeReference getReturnType()
Description copied from interface:ITypeComputationResultReturns the return type of the expression (if known). May returnnull. The return type is different from theactual typesince its value escapes the current context.- Specified by:
getReturnTypein interfaceITypeComputationResult
-
getExpression
public XExpression getExpression()
Description copied from interface:ITypeComputationResultThe expression that is associated with this result.- Specified by:
getExpressionin interfaceITypeComputationResult
-
getActualExpressionType
public LightweightTypeReference getActualExpressionType()
Description copied from interface:ITypeComputationResultReturns the type of the expression (if known). May returnnull.- Specified by:
getActualExpressionTypein interfaceITypeComputationResult
-
getExpectedExpressionType
public LightweightTypeReference getExpectedExpressionType()
Description copied from interface:ITypeComputationResultReturns the type of the expectation (if any). TODO expose theITypeExpectationinstead which carries more information.- Specified by:
getExpectedExpressionTypein interfaceITypeComputationResult
-
getExpectedReturnType
public LightweightTypeReference getExpectedReturnType()
Description copied from interface:ITypeComputationResultReturns the type of the return expectation (if any). TODO expose theITypeExpectationinstead which carries more information.- Specified by:
getExpectedReturnTypein interfaceITypeComputationResult
-
getConformanceHints
public java.util.EnumSet<ConformanceHint> getConformanceHints()
Description copied from interface:ITypeComputationResultConformance information about the actual expression type and the expectation.- Specified by:
getConformanceHintsin interfaceITypeComputationResult
-
getConformanceFlags
public int getConformanceFlags()
Description copied from interface:ITypeComputationResultConformance information about the actual expression type and the expectation.- Specified by:
getConformanceFlagsin interfaceITypeComputationResult
-
getCheckedConformanceHints
public java.util.EnumSet<ConformanceHint> getCheckedConformanceHints()
Description copied from interface:ITypeComputationResultConformance information about the actual expression type and the expectation.- Specified by:
getCheckedConformanceHintsin interfaceITypeComputationResult
-
getCheckedConformanceFlags
public int getCheckedConformanceFlags()
Description copied from interface:ITypeComputationResultConformance information about the actual expression type and the expectation.- Specified by:
getCheckedConformanceFlagsin interfaceITypeComputationResult
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-