Package | Description |
---|---|
jeb.api.ast |
This package contains classes used to represent Java Abstract Syntax Trees (AST).
|
Modifier and Type | Class and Description |
---|---|
class |
Assignment
This AST element represents an assignment.
|
class |
Block
This AST element represents a sequence of
Statement s. |
class |
Break
This AST element represents a "break" statement.
|
class |
Call
This AST element represents a call to a method.
|
class |
Compound
This is the base class for AST compound statements.
|
class |
Continue
This AST element represents a "continue" statement.
|
class |
Definition
This AST element represents definition statements.
|
class |
DoWhileStm
This AST element represents a do-while loop statement.
|
class |
ForStm
This AST element represents a for loop statement.
|
class |
Goto
This AST element represents a "goto" statement.
|
class |
IfStm
This AST element represents the if-statement.
|
class |
Label
This AST element represents a label statement.
|
class |
Monitor
This AST element represents a "monitor" statement.
|
class |
New
This AST element represents the instantiation of a new non-array object.
|
class |
NewArray
This AST element represents the instantiation of a new array object.
|
class |
Return
This AST element is used to represent method return statements.
|
class |
SwitchStm
This AST element represents the switch-statement.
|
class |
Throw
This AST element represents a throw statement.
|
class |
TryStm
This AST element represents the try-catch element.
|
class |
WhileStm
This AST element represents a while loop statement.
|
Modifier and Type | Method and Description |
---|---|
Statement |
Block.get(int index)
Get the statement at a given index.
|
Statement |
ForStm.getInitializer()
Get the initializer statement.
|
Statement |
ForStm.getPostStatement()
Get the post-iteration statement.
|
Statement |
Block.remove(int index)
Pull a statement from the block.
|
Modifier and Type | Method and Description |
---|---|
void |
Block.add(Statement stm)
Append a statement to this block.
|
static ForStm |
ForStm.build(Statement initializer,
Predicate p,
Statement poststm,
Block b)
Create a for loop.
|
void |
Block.insert(int index,
Statement stm)
Insert a statement at the given index.
|
void |
Block.set(int index,
Statement stm)
Replace a statement by another statement.
|
void |
ForStm.setInitializer(Statement initializer)
Set the loop initializer statement.
|
void |
ForStm.setPostStatement(Statement poststm)
Set the loop post-iteration statement.
|