Class Expr.Lit

  • Enclosing class:
    Expr

    public static class Expr.Lit
    extends Expr
    Class representing literal expressions.
    • Field Detail

      • value

        public final boolean value
        The value of this literal expression
    • Constructor Detail

      • Lit

        public Lit​(boolean value)
        Constructor for literals.
        Parameters:
        value - the value of the literal
    • Method Detail

      • toString

        public String toString()
        Returns a string representation.
        Overrides:
        toString in class Object
        Returns:
        the string representation