Package jmri.jmrit.logixng.util.parser
Class ExpressionNodeTrue
- java.lang.Object
-
- jmri.jmrit.logixng.util.parser.ExpressionNodeTrue
-
- All Implemented Interfaces:
ExpressionNode
public class ExpressionNodeTrue extends java.lang.Object implements ExpressionNode
A parsed expression that always return true
-
-
Constructor Summary
Constructors Constructor Description ExpressionNodeTrue()
-
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
-
ExpressionNodeTrue
public ExpressionNodeTrue()
-
-
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
-
-