Package jmri.jmrit.logixng.util.parser
Class ExpressionNodeArithmeticOperator
java.lang.Object
jmri.jmrit.logixng.util.parser.ExpressionNodeArithmeticOperator
- All Implemented Interfaces:
ExpressionNode
A parsed expression
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionNodeArithmeticOperator(TokenType tokenType, ExpressionNode leftSide, ExpressionNode rightSide) -
Method Summary
Modifier and TypeMethodDescriptioncalculate(SymbolTable symbolTable) Calculate the expressionGet 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, canBeAssigned
-
Constructor Details
-
ExpressionNodeArithmeticOperator
public ExpressionNodeArithmeticOperator(TokenType tokenType, ExpressionNode leftSide, ExpressionNode rightSide)
-
-
Method Details
-
calculate
Description copied from interface:ExpressionNodeCalculate the expression- Specified by:
calculatein interfaceExpressionNode- Parameters:
symbolTable- 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
-