Class ScriptInterpreter
java.lang.Object
org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
org.openhab.core.model.script.interpreter.ScriptInterpreter
- All Implemented Interfaces:
org.eclipse.xtext.xbase.interpreter.IExpressionInterpreter
public class ScriptInterpreter
extends org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
The script interpreter handles specific script components, which are not known
to the standard Xbase interpreter.
- Author:
- Kai Kreuzer - Initial contribution and API, Oliver Libutzki - Xtext 2.5.0 migration
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.ReturnValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_assignValueTo
(org.eclipse.xtext.common.types.JvmField jvmField, org.eclipse.xtext.xbase.XAbstractFeatureCall assignment, Object value, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) _doEvaluate
(org.eclipse.xtext.xbase.XCastedExpression castedExpression, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) protected Object
_invokeFeature
(org.eclipse.xtext.common.types.JvmField jvmField, org.eclipse.xtext.xbase.XAbstractFeatureCall featureCall, Object receiver, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) protected Object
doEvaluate
(org.eclipse.xtext.xbase.XExpression expression, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) protected Object
doEvaluate
(QuantityLiteral literal, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) protected boolean
protected Item
protected Type
getStateOrCommand
(String name) protected Object
invokeFeature
(org.eclipse.xtext.common.types.JvmIdentifiableElement feature, org.eclipse.xtext.xbase.XAbstractFeatureCall featureCall, Object receiverObj, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) Methods inherited from class org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
_assignValueTo, _assignValueTo, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _doEvaluate, _invokeFeature, _invokeFeature, applyGetAndAssignOperator, assignValueTo, castToPrimitiveType, coerceArgumentType, createClassFinder, createContext, evaluate, evaluate, evaluateArgumentExpressions, evaluateGetAndAssign, featureCallField, findCloseMethod, getActualArguments, getActualReceiver, getClass, getClassFinder, getDefaultObjectValue, getJavaReflectAccess, getJavaType, getReceiver, internalEvaluate, invokeOperation, invokeOperation, isGetAndAssign, isInstanceoOf, isType, resolveType, setClassLoader, setFeatureNameProvider, throwClassCastException, throwNullPointerException, translateJvmTypeToResult, wrapOrUnwrapArray
-
Constructor Details
-
ScriptInterpreter
public ScriptInterpreter()
-
-
Method Details
-
_invokeFeature
protected Object _invokeFeature(org.eclipse.xtext.common.types.JvmField jvmField, org.eclipse.xtext.xbase.XAbstractFeatureCall featureCall, Object receiver, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) - Overrides:
_invokeFeature
in classorg.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
-
invokeFeature
protected Object invokeFeature(org.eclipse.xtext.common.types.JvmIdentifiableElement feature, org.eclipse.xtext.xbase.XAbstractFeatureCall featureCall, Object receiverObj, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) - Overrides:
invokeFeature
in classorg.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
-
getStateOrCommand
-
getItem
-
eq
- Overrides:
eq
in classorg.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
-
_assignValueTo
public Object _assignValueTo(org.eclipse.xtext.common.types.JvmField jvmField, org.eclipse.xtext.xbase.XAbstractFeatureCall assignment, Object value, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) - Overrides:
_assignValueTo
in classorg.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
-
doEvaluate
protected Object doEvaluate(org.eclipse.xtext.xbase.XExpression expression, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) - Overrides:
doEvaluate
in classorg.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
-
doEvaluate
protected Object doEvaluate(QuantityLiteral literal, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) -
_doEvaluate
public Object _doEvaluate(org.eclipse.xtext.xbase.XCastedExpression castedExpression, org.eclipse.xtext.xbase.interpreter.IEvaluationContext context, org.eclipse.xtext.util.CancelIndicator indicator) - Overrides:
_doEvaluate
in classorg.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
-