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).
|
java.util.EnumSet<ConformanceHint> |
getCheckedConformanceHints()
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)
@Nullable public LightweightTypeReference getActualExpressionType()
ITypeComputationResult
null
.getActualExpressionType
in interface ITypeComputationResult
@Nullable public LightweightTypeReference getReturnType()
ITypeComputationResult
null
. The return type is different
from the actual type
since
its value escapes the current context.getReturnType
in interface ITypeComputationResult
@NonNull public XExpression getExpression()
ITypeComputationResult
getExpression
in interface ITypeComputationResult
@Nullable public LightweightTypeReference getExpectedExpressionType()
ITypeComputationResult
ITypeExpectation
instead which carries more information.getExpectedExpressionType
in interface ITypeComputationResult
@Nullable public LightweightTypeReference getExpectedReturnType()
ITypeComputationResult
ITypeExpectation
instead which carries more information.getExpectedReturnType
in interface ITypeComputationResult
@NonNull public java.util.EnumSet<ConformanceHint> getConformanceHints()
ITypeComputationResult
getConformanceHints
in interface ITypeComputationResult
@NonNull public java.util.EnumSet<ConformanceHint> getCheckedConformanceHints()
ITypeComputationResult
getCheckedConformanceHints
in interface ITypeComputationResult
public java.lang.String toString()
toString
in class java.lang.Object