public class DALExpression extends DALNode implements com.github.leeonky.interpreter.Expression<RuntimeContextBuilder.DALRuntimeContext,DALNode,DALExpression,DALOperator>, ExecutableNode
| Constructor and Description |
|---|
DALExpression(DALNode left,
DALOperator operator,
DALNode right) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<java.lang.Object> |
collectFields(Data data) |
Data |
evaluateData(RuntimeContextBuilder.DALRuntimeContext context) |
DALNode |
getLeftOperand() |
int |
getOperandPosition() |
DALOperator |
getOperator() |
int |
getPositionBegin() |
DALNode |
getRightOperand() |
java.lang.Object |
getRootSymbolName() |
Data |
getValue(Data data,
RuntimeContextBuilder.DALRuntimeContext context) |
java.lang.String |
inspect() |
java.util.List<java.lang.Object> |
propertyChain() |
getIndent, setIndent, setPositionBeginclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic DALExpression(DALNode left, DALOperator operator, DALNode right)
public DALNode getLeftOperand()
getLeftOperand in interface com.github.leeonky.interpreter.Expression<RuntimeContextBuilder.DALRuntimeContext,DALNode,DALExpression,DALOperator>public DALNode getRightOperand()
getRightOperand in interface com.github.leeonky.interpreter.Expression<RuntimeContextBuilder.DALRuntimeContext,DALNode,DALExpression,DALOperator>public DALOperator getOperator()
getOperator in interface com.github.leeonky.interpreter.Expression<RuntimeContextBuilder.DALRuntimeContext,DALNode,DALExpression,DALOperator>public Data evaluateData(RuntimeContextBuilder.DALRuntimeContext context)
evaluateData in class DALNodepublic java.lang.Object getRootSymbolName()
getRootSymbolName in class DALNodepublic int getOperandPosition()
getOperandPosition in interface com.github.leeonky.interpreter.Node<RuntimeContextBuilder.DALRuntimeContext,DALNode>getOperandPosition in class com.github.leeonky.interpreter.NodeBase<RuntimeContextBuilder.DALRuntimeContext,DALNode>public java.util.List<java.lang.Object> propertyChain()
propertyChain in class DALNodepublic java.util.stream.Stream<java.lang.Object> collectFields(Data data)
collectFields in class DALNodepublic Data getValue(Data data, RuntimeContextBuilder.DALRuntimeContext context)
getValue in interface ExecutableNodepublic int getPositionBegin()
getPositionBegin in interface com.github.leeonky.interpreter.Node<RuntimeContextBuilder.DALRuntimeContext,DALNode>getPositionBegin in class com.github.leeonky.interpreter.NodeBase<RuntimeContextBuilder.DALRuntimeContext,DALNode>