jltools.ext.jl.ast
Class AbstractBlock_c
jltools.ext.jl.ast.AbstractBlock_c
- Direct Known Subclasses:
- SwitchBlock_c
- public abstract class AbstractBlock_c
A Block
represents a Java block statement -- an immutable
sequence of statements.
statements
protected java.util.List statements
AbstractBlock_c
public AbstractBlock_c(Ext ext,
Position pos,
java.util.List statements)
statements
public java.util.List statements()
- Get the statements of the block.
statements
public <>Block statements(java.util.List statements)
- Set the statements of the block.
append
public <>Block append(Stmt stmt)
- Append a statement to the block.
reconstruct
protected AbstractBlock_c reconstruct(java.util.List statements)
- Reconstruct the block.
visitChildren
public Node visitChildren(NodeVisitor v)
- Visit the children of the block.
enterScope
public void enterScope(Context c)
leaveScope
public void leaveScope(Context c)
translate_
public void translate_(CodeWriter w,
Translator tr)
- Write the block to an output file.