Class LiteralExpression

  • All Implemented Interfaces:
    Expression

    public final class LiteralExpression
    extends java.lang.Object
    implements Expression
    The LiteralExpression class is used to store information about literal expressions declared during compilation.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      LiteralExpression​(Token literalToken, java.lang.Object value)
      Constructs a LiteralExpression object, initialised with the expressions contents.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LiteralExpression

        public LiteralExpression​(Token literalToken,
                                 java.lang.Object value)
        Constructs a LiteralExpression object, initialised with the expressions contents.

        A SourceSpan containing the range of the expression is automatically generated, as well as a LinkedList of its children.

        Parameters:
        literalToken - The literal Token
        value - The value of the literal Token