Class ScriptTypeComputer

  • All Implemented Interfaces:
    org.eclipse.xtext.xbase.typesystem.computation.ITypeComputer

    public class ScriptTypeComputer
    extends org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer
    Calculates the type information used by Xbase to select the correct method during script execution.
    Author:
    Henning Treu - Initial contribution
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer

        org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer.BranchExpressionProcessor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void _computeTypes​(QuantityLiteral assignment, org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState state)  
      void computeTypes​(org.eclipse.xtext.xbase.XExpression expression, org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState state)  
      • Methods inherited from class org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer

        _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, _computeTypes, addLocalToCurrentScope, addLocalToCurrentScope, assignType, checkValidReturn, checkValidReturnExpression, computeForLoopParameterType, computeWhileLoopBody, findCloseMethod, getAndEnhanceIterableOrArrayFromComponent, getBestCandidate, getCases, getDeclaredParameterType, getElementOrComponentType, getElse, getRefinableCandidate, getSwitchExpressionState, getThen, hasThrowableExpectation, isRefinableFeature, normalizedMultiType, reassignCheckedType, validateUnhandledException
      • Methods inherited from class org.eclipse.xtext.xbase.typesystem.computation.AbstractTypeComputer

        deferredBindTypeArgument, findDeclaredType, findDeclaredType, findDeclaredType, findDeclaredType, getCommonSuperType, getCommonSuperType, getPrimitiveVoid, getRawTypeForName, getRawTypeForName, getRawTypeForName, getTypeForName, getTypeForName
    • Constructor Detail

      • ScriptTypeComputer

        public ScriptTypeComputer()
    • Method Detail

      • computeTypes

        public void computeTypes​(org.eclipse.xtext.xbase.XExpression expression,
                                 org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState state)
        Specified by:
        computeTypes in interface org.eclipse.xtext.xbase.typesystem.computation.ITypeComputer
        Overrides:
        computeTypes in class org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer
      • _computeTypes

        protected void _computeTypes​(QuantityLiteral assignment,
                                     org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState state)