org.eclipse.xtext.xbase.typesystem.computation
Class XbaseTypeComputer

java.lang.Object
  extended by org.eclipse.xtext.xbase.typesystem.computation.AbstractTypeComputer
      extended by org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer
All Implemented Interfaces:
ITypeComputer

public class XbaseTypeComputer
extends AbstractTypeComputer

Author:
Sebastian Zarnekow - Initial contribution and API TODO JavaDoc

Constructor Summary
XbaseTypeComputer()
           
 
Method Summary
protected  void _computeTypes(XAbstractFeatureCall featureCall, ITypeComputationState state)
           
protected  void _computeTypes(XAbstractWhileExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XBlockExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XBooleanLiteral object, ITypeComputationState state)
           
protected  void _computeTypes(XCastedExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XClosure object, ITypeComputationState state)
           
protected  void _computeTypes(XConstructorCall constructorCall, ITypeComputationState state)
           
protected  void _computeTypes(XForLoopExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XIfExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XInstanceOfExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XNullLiteral object, ITypeComputationState state)
           
protected  void _computeTypes(XNumberLiteral object, ITypeComputationState state)
           
protected  void _computeTypes(XReturnExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XStringLiteral object, ITypeComputationState state)
           
protected  void _computeTypes(XSwitchExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XThrowExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XTryCatchFinallyExpression object, ITypeComputationState state)
           
protected  void _computeTypes(XTypeLiteral object, ITypeComputationState state)
           
protected  void _computeTypes(XVariableDeclaration object, ITypeComputationState state)
           
 void computeTypes(XExpression expression, ITypeComputationState state)
           
protected
<Candidate extends ILinkingCandidate<Candidate>>
Candidate
getBestCandidate(java.util.List<Candidate> candidates)
           
protected  JvmTypeReference getPrimitiveVoid(XExpression object)
           
 JvmIdentifiableElement getRefinableCandidate(XExpression object, ITypeComputationState state)
           
protected  TypeReferences getTypeReferences()
           
 
Methods inherited from class org.eclipse.xtext.xbase.typesystem.computation.AbstractTypeComputer
_computeTypes, checkIsSingelton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XbaseTypeComputer

public XbaseTypeComputer()
Method Detail

getTypeReferences

protected TypeReferences getTypeReferences()

computeTypes

public void computeTypes(XExpression expression,
                         ITypeComputationState state)
Specified by:
computeTypes in interface ITypeComputer
Overrides:
computeTypes in class AbstractTypeComputer

_computeTypes

protected void _computeTypes(XIfExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XSwitchExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XBlockExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XVariableDeclaration object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XConstructorCall constructorCall,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XBooleanLiteral object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XNullLiteral object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XNumberLiteral object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XStringLiteral object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XClosure object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XCastedExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XForLoopExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XAbstractWhileExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XTypeLiteral object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XInstanceOfExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XThrowExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XReturnExpression object,
                             ITypeComputationState state)

getPrimitiveVoid

protected JvmTypeReference getPrimitiveVoid(XExpression object)

_computeTypes

protected void _computeTypes(XTryCatchFinallyExpression object,
                             ITypeComputationState state)

_computeTypes

protected void _computeTypes(XAbstractFeatureCall featureCall,
                             ITypeComputationState state)

getBestCandidate

protected <Candidate extends ILinkingCandidate<Candidate>> Candidate getBestCandidate(java.util.List<Candidate> candidates)

getRefinableCandidate

public JvmIdentifiableElement getRefinableCandidate(XExpression object,
                                                    ITypeComputationState state)