Package | Description |
---|---|
jeb.api.ast |
This package contains classes used to represent Java Abstract Syntax Trees (AST).
|
Modifier and Type | Interface and Description |
---|---|
interface |
ILeftExpression
This interface is implemented by AST elements representing expressions
that can be assigned to, ie expressions that can be left-members of assignment statements.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayElt
This AST element represents the element of an array.
|
class |
Call
This AST element represents a call to a method.
|
class |
ConditionalExpression
This AST element is used to represent conditional expressions.
|
class |
Constant
This AST element represents a literal, or constant value.
|
class |
Definition
This AST element represents definition statements.
|
class |
Expression
This AST element is used to represent arithmetic or logical expressions.
|
class |
Identifier
This AST element represents a Java identifier, or variable.
|
class |
InstanceField
This AST element represents a non-static field variable.
|
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 |
Predicate
This AST element is used to represent predicates.
|
class |
StaticField
This AST element represents an static field variable.
|
class |
TypeReference
This AST element represents a type reference.
|
Modifier and Type | Method and Description |
---|---|
IExpression |
ArrayElt.getArray()
Get the array expression.
|
IExpression |
Throw.getExpression()
Get the thrown expression.
|
IExpression |
Return.getExpression()
Get the returned expression.
|
IExpression |
ArrayElt.getIndex()
Get the index expression.
|
IExpression |
Field.getInitialValue()
Get the static initialization value, if any.
|
IExpression |
InstanceField.getInstance()
Get the instance expression, which is the object that contains the field.
|
IExpression |
Expression.getLeft()
Get the left sub-expression.
|
IExpression |
ConditionalExpression.getLeft()
Get the 'condition' left expression.
|
IExpression |
Monitor.getLock()
Retrieve the lock object.
|
IExpression |
Expression.getRight()
Get the right sub-expression.
|
IExpression |
Assignment.getRight()
Get the right part of the assignment.
|
IExpression |
ConditionalExpression.getRight0()
Get the 'evaluated on true' right expression.
|
IExpression |
ConditionalExpression.getRight1()
Get the 'evaluated on false' right expression.
|
IExpression |
SwitchStm.getSwitchedExpression()
Get the expression being switched on.
|
IExpression |
Call.removeArgument(int index)
Pull an argument from the list of arguments.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IExpression> |
New.getArguments()
Get the constructor arguments.
|
java.util.List<IExpression> |
Call.getArguments()
Retrieve the list of arguments passed to the method.
|
java.util.List<IExpression> |
NewArray.getInitialValues()
Get the list of initial values for the array.
|
java.util.List<IExpression> |
NewArray.getSizes()
Get the list of dimensions for the array.
|
Modifier and Type | Method and Description |
---|---|
static Throw |
Throw.build(IExpression e)
Create a throw statement.
|
static SwitchStm |
SwitchStm.build(IExpression value)
Create a new switch statement.
|
static Return |
Return.build(IExpression e)
Create a return statement.
|
static InstanceField |
InstanceField.build(IExpression instance,
Field field)
Create a new instance field object.
|
static ArrayElt |
ArrayElt.build(IExpression array,
IExpression index)
Create a new array element.
|
static ConditionalExpression |
ConditionalExpression.build(IExpression left,
IExpression right0,
IExpression right1)
Create a conditional expression.
|
static Predicate |
Predicate.build(IExpression left,
Operator operator,
IExpression right)
Create a new predicate expression.
|
static Expression |
Expression.build(IExpression left,
Operator operator,
IExpression right)
Create an expression.
|
static Assignment |
Assignment.build(ILeftExpression left,
IExpression right)
Create a new assignment.
|
void |
Call.insertArgument(int index,
IExpression arg)
Insert an argument to the list of arguments.
|
void |
ArrayElt.setArray(IExpression array)
Set the array expression.
|
void |
Throw.setExpression(IExpression e)
Set the thrown expression.
|
void |
Return.setExpression(IExpression e)
Set the returned expression.
|
void |
ArrayElt.setIndex(IExpression index)
Set the index expression.
|
void |
InstanceField.setInstance(IExpression instance)
Set the instance.
|
void |
Assignment.setRight(IExpression right)
Set the right part of the assignment.
|
void |
SwitchStm.setSwitchedExpression(IExpression e)
Set the switch expression.
|
Modifier and Type | Method and Description |
---|---|
static Call |
Call.build(Method m,
boolean is_super,
java.util.List<IExpression> arguments)
Create a call element.
|