Package | Description |
---|---|
jeb.api.ast |
This package contains classes used to represent Java Abstract Syntax Trees (AST).
|
Modifier and Type | Method and Description |
---|---|
static Predicate |
Predicate.build(IExpression left,
Operator operator,
IExpression right)
Create a new predicate expression.
|
Predicate |
IfStm.getBranchPredicate(int index)
Get a branch (if, else-if) predicate.
|
Predicate |
WhileStm.getPredicate()
Get the loop predicate.
|
Predicate |
ForStm.getPredicate()
Get the loop predicate.
|
Predicate |
DoWhileStm.getPredicate()
Get the loop predicate.
|
Modifier and Type | Method and Description |
---|---|
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 |
IfStm.setBranchPredicate(int index,
Predicate p)
Set a branch (if, else-if) predicate.
|
void |
WhileStm.setPredicate(Predicate p)
Set the predicate.
|
void |
ForStm.setPredicate(Predicate p)
Set the loop predicate.
|
void |
DoWhileStm.setPredicate(Predicate p)
Set the predicate.
|