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.


Field Summary
protected  java.util.List statements
           
 
Constructor Summary
AbstractBlock_c(Ext ext, Position pos, java.util.List statements)
           
 
Method Summary
 <>Block append(Stmt stmt)
          Append a statement to the block.
 void enterScope(Context c)
           
 void leaveScope(Context c)
           
protected  AbstractBlock_c reconstruct(java.util.List statements)
          Reconstruct the block.
 java.util.List statements()
          Get the statements of the block.
 <>Block statements(java.util.List statements)
          Set the statements of the block.
 void translate_(CodeWriter w, Translator tr)
          Write the block to an output file.
 Node visitChildren(NodeVisitor v)
          Visit the children of the block.
 

Field Detail

statements

protected java.util.List statements
Constructor Detail

AbstractBlock_c

public AbstractBlock_c(Ext ext,
                       Position pos,
                       java.util.List statements)
Method Detail

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.