Class ParenthesizedExpression

  • All Implemented Interfaces:
    Expression

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

      Constructors 
      Constructor Description
      ParenthesizedExpression​(Token openParenthesisToken, Expression expression, Token closeParenthesisToken)
      Constructs an ParenthesizedExpression 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

      • ParenthesizedExpression

        public ParenthesizedExpression​(Token openParenthesisToken,
                                       Expression expression,
                                       Token closeParenthesisToken)
        Constructs an ParenthesizedExpression 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:
        openParenthesisToken - The open parenthesis Token
        expression - The Expression within the parenthesis
        closeParenthesisToken - The close parenthesis Token