public class ResolutionBasedComputationResult extends java.lang.Object implements ITypeComputationResult
| Constructor and Description |
|---|
ResolutionBasedComputationResult(XExpression expression,
ResolvedTypes resolution) |
| Modifier and Type | Method and Description |
|---|---|
LightweightTypeReference |
getActualExpressionType()
Returns the type of the expression (if known).
|
int |
getCheckedConformanceFlags()
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.
|
int |
getConformanceFlags()
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.
|
LightweightTypeReference |
getExpectedExpressionType()
Returns the type of the expectation (if any).
|
LightweightTypeReference |
getExpectedReturnType()
Returns the type of the return expectation (if any).
|
XExpression |
getExpression()
The expression that is associated with this result.
|
LightweightTypeReference |
getReturnType()
Returns the return type of the expression (if known).
|
java.lang.String |
toString() |
public ResolutionBasedComputationResult(XExpression expression, ResolvedTypes resolution)
public LightweightTypeReference getActualExpressionType()
ITypeComputationResultnull.getActualExpressionType in interface ITypeComputationResultpublic LightweightTypeReference getReturnType()
ITypeComputationResultnull. The return type is different
from the actual type since
its value escapes the current context.getReturnType in interface ITypeComputationResultpublic XExpression getExpression()
ITypeComputationResultgetExpression in interface ITypeComputationResultpublic LightweightTypeReference getExpectedExpressionType()
ITypeComputationResultITypeExpectation instead which carries more information.getExpectedExpressionType in interface ITypeComputationResultpublic LightweightTypeReference getExpectedReturnType()
ITypeComputationResultITypeExpectation instead which carries more information.getExpectedReturnType in interface ITypeComputationResultpublic java.util.EnumSet<ConformanceHint> getConformanceHints()
ITypeComputationResultgetConformanceHints in interface ITypeComputationResultpublic int getConformanceFlags()
ITypeComputationResultgetConformanceFlags in interface ITypeComputationResultpublic java.util.EnumSet<ConformanceHint> getCheckedConformanceHints()
ITypeComputationResultgetCheckedConformanceHints in interface ITypeComputationResultpublic int getCheckedConformanceFlags()
ITypeComputationResultgetCheckedConformanceFlags in interface ITypeComputationResultpublic java.lang.String toString()
toString in class java.lang.Object