Package jmri.jmrit.logixng.util.parser
Class ExpressionNodeMethod
java.lang.Object
jmri.jmrit.logixng.util.parser.ExpressionNodeMethod
- All Implemented Interfaces:
ExpressionNode,ExpressionNodeWithParameter
A parsed expression
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionNodeMethod(String method, Map<String, Variable> variables, List<ExpressionNode> parameterList) -
Method Summary
Modifier and TypeMethodDescriptioncalculate(Object parameter, SymbolTable symbolTable) Calculate the expression from a parameter.Get a String that defines this expression node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.jmrit.logixng.util.parser.ExpressionNode
assignValue, canBeAssignedMethods inherited from interface jmri.jmrit.logixng.util.parser.ExpressionNodeWithParameter
assignValue, calculate
-
Constructor Details
-
ExpressionNodeMethod
public ExpressionNodeMethod(String method, Map<String, Variable> variables, List<ExpressionNode> parameterList) throws FunctionNotExistsException- Throws:
FunctionNotExistsException
-
-
Method Details
-
calculate
Description copied from interface:ExpressionNodeWithParameterCalculate the expression from a parameter.- Specified by:
calculatein interfaceExpressionNodeWithParameter- Parameters:
parameter- the parametersymbolTable- the symbol table- Returns:
- the result
- Throws:
JmriException- if an error occurs
-
getDefinitionString
Get a String that defines this expression node.- Specified by:
getDefinitionStringin interfaceExpressionNode- Returns:
- the string
-