|
|||||||||
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.AbstractRootTypeExpectation org.eclipse.xtext.xbase.typesystem.internal.RootNoExpectation
public class RootNoExpectation
Constructor Summary | |
---|---|
RootNoExpectation(AbstractTypeComputationState state)
|
Method Summary | |
---|---|
void |
acceptActualType(JvmTypeReference type,
ConformanceHint hint)
|
JvmTypeReference |
getExpectedType()
Returns the expected type. |
boolean |
isNoTypeExpectation()
Returns true if anything is allowed and no constraints are expected. |
boolean |
isVoidTypeAllowed()
Returns true if Void.TYPE is a valid type. |
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeExpectation |
---|
getState, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RootNoExpectation(AbstractTypeComputationState state)
Method Detail |
---|
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
.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 boolean isVoidTypeAllowed()
ITypeExpectation
true
if Void.TYPE
is a valid type. It may be the only valid type
or there may exist others.
isVoidTypeAllowed
in interface ITypeExpectation
isVoidTypeAllowed
in class AbstractTypeExpectation
true
if primitive void
is allowed.public void acceptActualType(JvmTypeReference type, ConformanceHint hint)
acceptActualType
in interface ITypeExpectation
acceptActualType
in class AbstractRootTypeExpectation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |