Package jmri.jmrit.logixng.util.parser
Interface ExpressionNodeWithParameter
- All Superinterfaces:
ExpressionNode
- All Known Implementing Classes:
ExpressionNodeArray,ExpressionNodeInstanceVariable,ExpressionNodeMap,ExpressionNodeMethod
An expression that takes a parameter.
This interface are used for ExpressionNodeFunction
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidassignValue(Object parameter, SymbolTable symbolTable, Object value) Assign a value to this expression from a parameter.calculate(Object parameter, SymbolTable symbolTable) Calculate the expression from a parameter.default Objectcalculate(SymbolTable symbolTable) Calculate the expressionMethods inherited from interface jmri.jmrit.logixng.util.parser.ExpressionNode
assignValue, canBeAssigned, getDefinitionString
-
Method Details
-
calculate
Calculate the expression- Specified by:
calculatein interfaceExpressionNode- Parameters:
symbolTable- the symbol table- Returns:
- the result
- Throws:
JmriException- if an error occurs
-
calculate
Calculate the expression from a parameter.- Parameters:
parameter- the parametersymbolTable- the symbol table- Returns:
- the result
- Throws:
JmriException- if an error occurs
-
assignValue
default void assignValue(Object parameter, SymbolTable symbolTable, Object value) throws JmriException Assign a value to this expression from a parameter.- Parameters:
parameter- the parametersymbolTable- the symbol tablevalue- the value to assign- Throws:
JmriException- if an error occurs
-