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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    _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
    eq(Object a, Object b)
     
    protected Item
     
    protected Type
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.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 class org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter
    • getStateOrCommand

      protected Type getStateOrCommand(String name)
    • getItem

      protected Item getItem(String name)
    • eq

      protected boolean eq(Object a, Object b)
      Overrides:
      eq in class org.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 class org.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 class org.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 class org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter