Package jmri.jmrit.logixng.util.parser
Class ExpressionNodeBinaryOperator
java.lang.Object
jmri.jmrit.logixng.util.parser.ExpressionNodeBinaryOperator
- All Implemented Interfaces:
ExpressionNode
A parsed expression
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionNodeBinaryOperator(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
-
ExpressionNodeBinaryOperator
public ExpressionNodeBinaryOperator(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
-