|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Block
superinterface. A Block
is a
structure that holds Statements and typically delimited by braces.
Block
acts as a factory for all Statement
objects.
Method Summary | |
Iterator |
getStatements()
Gets the list of statements as an iterator of Statement . |
Break |
newBreak()
Adds a new Break statement to this block and
returns it. |
Continue |
newContinue()
Adds a new Continue statement to this block and
returns it. |
DoWhile |
newDoWhile(Expression predicate)
Adds a new DoWhile statement to this block and
returns it. |
Empty |
newEmpty()
Adds a new Empty statement to this block and
returns it. |
For |
newFor()
Adds a new For statement to this block and returns
it. |
If |
newIf(Expression predicate)
Adds a new If statement to this block and returns
it. |
Let |
newLet(Type type)
Adds a new Let statement to this block for the
given type and returns it. |
LocalBlock |
newLocalBlock()
Adds a new LocalBlock statement to this block and
returns it. |
LocalClass |
newLocalClass(java.lang.String name)
Adds a new LocalClass statement to this block and
returns it. |
Return |
newReturn()
Adds a new Return statement to this block and
returns it. |
ExpressionStatement |
newStmt(Expression expr)
Adds a new ExpressionStatement statement to this
block on the given statement Expression and
returns it. |
Switch |
newSwitch(Expression integer)
Adds a new Switch statement to this block and
returns it. |
Synchronized |
newSynchronized(Expression mutex)
Adds a new Synchronized statement to this block
and returns it. |
Throw |
newThrow(Expression throwable)
Adds a new Throw statement to this block and
returns it. |
Try |
newTry()
Adds a new Try statement to this block and returns
it. |
While |
newWhile(Expression predicate)
Adds a new While statement to this block and
returns it. |
Methods inherited from interface org.inxar.jenesis.Codeable |
getComment, setComment, toCode, vm |
Method Detail |
public Iterator getStatements()
Statement
.public Empty newEmpty()
Empty
statement to this block and
returns it.public LocalBlock newLocalBlock()
LocalBlock
statement to this block and
returns it.public LocalClass newLocalClass(java.lang.String name)
LocalClass
statement to this block and
returns it.public Break newBreak()
Break
statement to this block and
returns it.public Continue newContinue()
Continue
statement to this block and
returns it.public Return newReturn()
Return
statement to this block and
returns it.public Let newLet(Type type)
Let
statement to this block for the
given type and returns it.public Throw newThrow(Expression throwable)
Throw
statement to this block and
returns it.public While newWhile(Expression predicate)
While
statement to this block and
returns it.public DoWhile newDoWhile(Expression predicate)
DoWhile
statement to this block and
returns it.public For newFor()
For
statement to this block and returns
it.public Try newTry()
Try
statement to this block and returns
it.public Switch newSwitch(Expression integer)
Switch
statement to this block and
returns it.public Synchronized newSynchronized(Expression mutex)
Synchronized
statement to this block
and returns it.public If newIf(Expression predicate)
If
statement to this block and returns
it.public ExpressionStatement newStmt(Expression expr)
ExpressionStatement
statement to this
block on the given statement Expression
and
returns it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |