Class ExpressionStatement

  • All Implemented Interfaces:
    Statement

    public final class ExpressionStatement
    extends java.lang.Object
    implements Statement
    The ExpressionStatement class is used to store information about expression statements declared during compilation.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionStatement​(Expression expression)
      Constructs an ExpressionStatement object, initialised with the statements contents.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • ExpressionStatement

        public ExpressionStatement​(Expression expression)
        Constructs an ExpressionStatement object, initialised with the statements contents.

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

        Parameters:
        expression - The Expression object