|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeExpectation org.eclipse.xtext.xbase.typesystem.internal.AbstractReturnAwareTypeExpectation org.eclipse.xtext.xbase.typesystem.internal.TypeExpectation
public class TypeExpectation
Constructor Summary | |
---|---|
TypeExpectation(JvmTypeReference reference,
AbstractTypeComputationState state,
boolean returnType)
|
Method Summary | |
---|---|
JvmTypeReference |
getExpectedType()
Returns the expected type. |
boolean |
isNoTypeExpectation()
Returns true if anything is allowed and no constraints are expected. |
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractReturnAwareTypeExpectation |
---|
acceptActualType |
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeExpectation |
---|
getState, isVoidTypeAllowed, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeExpectation(JvmTypeReference reference, AbstractTypeComputationState state, boolean returnType)
Method Detail |
---|
public boolean isNoTypeExpectation()
ITypeExpectation
true
if anything is allowed and no constraints are expected.
true
if anything is allowed and no constraints are expected.public JvmTypeReference getExpectedType()
ITypeExpectation
ITypeExpectation.getExpectedType()
may return
null
or some sort of unresolved, specialized reference. If null
is returned, clients
may want to check ITypeExpectation.isNoTypeExpectation()
or ITypeExpectation.isVoidTypeAllowed()
.
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |