001package jmri.jmrit.logixng.util.parser;
002
003import jmri.jmrit.logixng.SymbolTable;
004
005/**
006 * A parsed expression that always return true
007 */
008public class ExpressionNodeTrue implements ExpressionNode {
009
010    public ExpressionNodeTrue() {
011    }
012    
013    @Override
014    public Object calculate(SymbolTable symbolTable) {
015        return true;
016    }
017    
018    /** {@inheritDoc} */
019    @Override
020    public String getDefinitionString() {
021        return "true";
022    }
023    
024}