Class BlockStatement

  • All Implemented Interfaces:
    Statement

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

      Constructors 
      Constructor Description
      BlockStatement​(Token openBraceToken, java.util.List<Statement> statements, Token closeBraceToken)
      Constructs a BlockStatement 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

      • BlockStatement

        public BlockStatement​(Token openBraceToken,
                              java.util.List<Statement> statements,
                              Token closeBraceToken)
        Constructs a BlockStatement 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:
        openBraceToken - The open brace Token
        statements - The List of Statements within the braces
        closeBraceToken - The close brace Token