Package org.qdl_lang.expressions
Interface ExpressionNode
-
- All Superinterfaces:
ExpressionInterface
,HasResultInterface
,Serializable
,Statement
- All Known Implementing Classes:
AllIndices
,AltIfExpressionNode
,ANode2
,ClosedSliceNode
,ComparisonDyad
,ConstantNode
,Dyad
,DyadicFunctionReferenceNode
,ESN2
,ExpressionImpl
,FunctionReferenceNode
,LambdaDefinitionNode
,ModuleExpression
,Monad
,Nilad
,OpenSliceNode
,ParenthesizedExpression
,Polyad
,QDLNull
,SelectExpressionNode
,StemExtractionNode
,VariableNode
public interface ExpressionNode extends ExpressionInterface
This class mostly manages the structure of expressions (so arguments are the children) and evaluating them is delegating the result to theOpEvaluator
class.Created by Jeff Gaynor
on 1/13/20 at 3:02 PM
-
-
Field Summary
Fields Modifier and Type Field Description static int
valence
-
Fields inherited from interface org.qdl_lang.statements.ExpressionInterface
ALL_INDICES_NODE, ALT_IF_NODE, ASSIGNMENT_NODE, CLOSED_SLICE_NODE, COMPARISON_DYAD_NODE, CONSTANT_NODE, DYAD_NODE, DYADIC_FUNCTION_REFERENCE_NODE, EXPRESSION_STEM_NODE, EXPRESSION_STEM2_NODE, FUNCTION_REFERENCE_NODE, LAMBDA_DEFINITION_NODE, LIST_NODE, MODULE_NODE, MONAD_NODE, NILAD_NODE, OPEN_SLICE_NODE, PARENTHESIZED_NODE, PARSE_EXPRESSION_BLOCK_NODE, PARSE_STATEMENT_BLOCK_NODE, POLYAD_NODE, QDL_NULL_NODE, SELECT_NODE, SET_NODE, STEM_ENTRY_NODE, STEM_EXTRACTION_NODE, STEM_NODE, UNKNOWN_NODE, VARIABLE_NODE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionInterface
getArgAt(int index)
int
getArgCount()
ArrayList<ExpressionInterface>
getArguments()
int
getOperatorType()
void
setArguments(ArrayList<ExpressionInterface> arguments)
void
setOperatorType(int operatorType)
-
Methods inherited from interface org.qdl_lang.statements.ExpressionInterface
getAlias, getNodeType, hasAlias, makeCopy, setAlias
-
Methods inherited from interface org.qdl_lang.statements.HasResultInterface
getResult, getResultType, isEvaluated, setEvaluated, setResult, setResultType
-
Methods inherited from interface org.qdl_lang.statements.Statement
evaluate, getSourceCode, getTokenPosition, hasTokenPosition, setSourceCode, setTokenPosition
-
-
-
-
Field Detail
-
valence
static final int valence
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArguments
ArrayList<ExpressionInterface> getArguments()
-
getArgAt
ExpressionInterface getArgAt(int index)
-
setArguments
void setArguments(ArrayList<ExpressionInterface> arguments)
-
getArgCount
int getArgCount()
-
getOperatorType
int getOperatorType()
-
setOperatorType
void setOperatorType(int operatorType)
-
-