Class ASTStmtBlock
java.lang.Object
io.github.protasm.jvmud.compiler.parser.ast.ASTNode
io.github.protasm.jvmud.compiler.parser.ast.ASTStatement
io.github.protasm.jvmud.compiler.parser.ast.stmt.ASTStmtBlock
- All Implemented Interfaces:
Iterable<ASTStatement>
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionASTStmtBlock(int line) ASTStmtBlock(int line, List<ASTStatement> statements) ASTStmtBlock(int line, List<ASTStatement> statements, List<ASTStmtBlock.BlockLocalDeclaration> localDeclarations) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ASTStatement stmt) voidaddLocalDeclaration(int statementIndex, List<ASTLocal> locals) iterator()intsize()Methods inherited from class ASTNode
accept, className, line, setSourceOrder, sourceOrderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
ASTStmtBlock
public ASTStmtBlock(int line) -
ASTStmtBlock
-
ASTStmtBlock
public ASTStmtBlock(int line, List<ASTStatement> statements, List<ASTStmtBlock.BlockLocalDeclaration> localDeclarations)
-
-
Method Details
-
add
-
size
public int size() -
statements
-
localDeclarations
-
addLocalDeclaration
-
iterator
- Specified by:
iteratorin interfaceIterable<ASTStatement>
-