Class ScriptTypeComputer
java.lang.Object
org.eclipse.xtext.xbase.typesystem.computation.AbstractTypeComputer
org.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer
org.openhab.core.model.script.jvmmodel.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
ScriptTypeComputer
public ScriptTypeComputer()
-
-
Method Details
-
computeTypes
public void computeTypes(org.eclipse.xtext.xbase.XExpression expression, org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState state) - Specified by:
computeTypes
in interfaceorg.eclipse.xtext.xbase.typesystem.computation.ITypeComputer
- Overrides:
computeTypes
in classorg.eclipse.xtext.xbase.typesystem.computation.XbaseTypeComputer
-
_computeTypes
protected void _computeTypes(QuantityLiteral assignment, org.eclipse.xtext.xbase.typesystem.computation.ITypeComputationState state)
-