Class Literal

  • All Implemented Interfaces:
    java.io.Serializable

    public class Literal
    extends Expression
    Literal of some type (String, Double, Long, BigDecimal, etc).
    See Also:
    Serialized Form
    • Field Detail

      • value

        java.lang.Object value
    • Constructor Detail

      • Literal

        public Literal​(java.lang.Object value)
    • Method Detail

      • getLiteral

        public java.lang.Object getLiteral()
      • negate

        public void negate()
      • bind

        public Symbol bind​(SymbolTable symtbl)
        Method to bind the expression to the symbol table as appropriate.
        Specified by:
        bind in class Expression
        Parameters:
        symtbl - Symbol Table
        Returns:
        The symbol for this expression
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object