Class Java.Block

    • Field Detail

      • statements

        public final java.util.List<Java.BlockStatement> statements
        The list of statements that comprise the body of the block.
    • Constructor Detail

      • Block

        public Block​(Location location)
    • Method Detail

      • addStatement

        public void addStatement​(Java.BlockStatement statement)
        Adds one statement to the end of the block.
      • addStatements

        public void addStatements​(java.util.List<? extends Java.BlockStatement> statements)
        Adds a list of statements to the end of the block.
      • getStatements

        public Java.BlockStatement[] getStatements()
        Returns:
        A copy of the list of statements that comprise the body of the block
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object