org.eclipse.xtext.xbase.typesystem.internal
Class AbstractTypeExpectation

java.lang.Object
  extended by org.eclipse.xtext.xbase.typesystem.internal.AbstractTypeExpectation
All Implemented Interfaces:
ITypeExpectation
Direct Known Subclasses:
AbstractReturnAwareTypeExpectation, AbstractRootTypeExpectation

public abstract class AbstractTypeExpectation
extends java.lang.Object
implements ITypeExpectation

Author:
Sebastian Zarnekow - Initial contribution and API TODO JavaDoc, toString

Constructor Summary
protected AbstractTypeExpectation(AbstractTypeComputationState state)
           
 
Method Summary
protected  AbstractTypeComputationState getState()
           
 boolean isVoidTypeAllowed()
          Returns true if Void.TYPE is a valid type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ITypeExpectation
acceptActualType, getExpectedType, isNoTypeExpectation
 

Constructor Detail

AbstractTypeExpectation

protected AbstractTypeExpectation(AbstractTypeComputationState state)
Method Detail

isVoidTypeAllowed

public boolean isVoidTypeAllowed()
Description copied from interface: ITypeExpectation
Returns true if Void.TYPE is a valid type. It may be the only valid type or there may exist others.

Specified by:
isVoidTypeAllowed in interface ITypeExpectation
Returns:
true if primitive void is allowed.

getState

protected AbstractTypeComputationState getState()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object