Package jmri.jmrit.logixng.util.parser
Class ExpressionNodeString
- java.lang.Object
-
- jmri.jmrit.logixng.util.parser.ExpressionNodeString
-
- All Implemented Interfaces:
ExpressionNode
public class ExpressionNodeString extends java.lang.Object implements ExpressionNode
A parsed expression
-
-
Constructor Summary
Constructors Constructor Description ExpressionNodeString(Token token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
calculate(SymbolTable symbolTable)
Calculate the expressionjava.lang.String
getDefinitionString()
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, wait
-
Methods inherited from interface jmri.jmrit.logixng.util.parser.ExpressionNode
assignValue, canBeAssigned
-
-
-
-
Constructor Detail
-
ExpressionNodeString
public ExpressionNodeString(Token token)
-
-
Method Detail
-
calculate
public java.lang.Object calculate(SymbolTable symbolTable)
Description copied from interface:ExpressionNode
Calculate the expression- Specified by:
calculate
in interfaceExpressionNode
- Parameters:
symbolTable
- the symbol table- Returns:
- the result
-
getDefinitionString
public java.lang.String getDefinitionString()
Get a String that defines this expression node.- Specified by:
getDefinitionString
in interfaceExpressionNode
- Returns:
- the string
-
-