Package | Description |
---|---|
jeb.api.ast |
This package contains classes used to represent Java Abstract Syntax Trees (AST).
|
Modifier and Type | Method and Description |
---|---|
static Block |
Block.build()
Create a new block.
|
Block |
WhileStm.getBody()
Get the loop body.
|
Block |
Method.getBody()
Get the body of the method.
|
Block |
ForStm.getBody()
Get the loop body.
|
Block |
DoWhileStm.getBody()
Get the loop body.
|
Block |
IfStm.getBranchBody(int index)
Get a branch (if, else-if) body.
|
Block |
SwitchStm.getCaseBody(int key)
Get a case body by key.
|
Block |
TryStm.getCatchBody(int index)
Get a catch body.
|
Block |
IfStm.getDefaultBlock()
Get the default branch (else) body, if any.
|
Block |
SwitchStm.getDefaultBody()
Get the default case block.
|
Block |
TryStm.getFinallyBody()
Get the finally body, if any.
|
Block |
TryStm.getTryBody()
Get the try block.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Block> |
Compound.getBlocks()
Get the list of blocks contained in this compound.
|
java.util.List<Block> |
SwitchStm.getCaseBodies()
Get the case bodies.
|
Modifier and Type | Method and Description |
---|---|
void |
SwitchStm.addCase(java.util.List<java.lang.Integer> keys,
Block b)
Add a case to the switch
|
static WhileStm |
WhileStm.build(Predicate p,
Block b)
Create a while loop.
|
static IfStm |
IfStm.build(Predicate p,
Block b)
Create a new single-branch if-statement:
if(p) b |
static DoWhileStm |
DoWhileStm.build(Predicate p,
Block b)
Create a do-while loop.
|
static ForStm |
ForStm.build(Statement initializer,
Predicate p,
Statement poststm,
Block b)
Create a for loop.
|
void |
IfStm.insertBranch(int index,
Predicate p,
Block b)
Insert a branch.
|
void |
WhileStm.setBody(Block b)
Set the body.
|
void |
ForStm.setBody(Block b)
Set the loop post-iteration statement.
|
void |
DoWhileStm.setBody(Block b)
Set the body.
|
void |
IfStm.setBranchBody(int index,
Block b)
Set a branch (if, else-if) body.
|
void |
SwitchStm.setDefaultBody(Block b)
Set the default case body for the switch.
|