Package | Description |
---|---|
net.sourceforge.jenesis4java | |
net.sourceforge.jenesis4java.impl |
Modifier and Type | Interface and Description |
---|---|
interface |
Accessor
Expression subinterface for expressions which access data including
field accesses, array accesses, and method invocations. |
interface |
ArrayAccess
Expression subinterface for array accesses. |
interface |
ArrayInitializer
Expression subinterface for array initializers. |
interface |
Assign
Expression subinterface for assignments. |
interface |
Binary
Expression subinterface for expressions which have left and right
operands. |
interface |
Blank
Expression subinterface for blank expressions. |
interface |
BooleanLiteral
Literal subinterface for boolean literals. |
interface |
ByteLiteral
Literal subinterface for byte literals. |
interface |
Cast
Expression subinterface for casting. |
interface |
CharLiteral
Literal subinterface for char literals. |
interface |
ClassLiteral
Literal subinterface for class literals. |
interface |
DoubleLiteral
Literal subinterface for double literals. |
interface |
False
Literal subinterface for false . |
interface |
FieldAccess
Expression subinterface for field accesses. |
interface |
FloatLiteral
Literal subinterface for float literals. |
interface |
Freeform
Expression subinterface for freeform expressions. |
interface |
IntLiteral
Literal subinterface for int literals. |
interface |
Invoke
Expression subinterface for method invocations (n-ary). |
interface |
Literal
The
Literal superinterface. |
interface |
LongLiteral
Literal subinterface for long literals. |
interface |
NewAnonymousClass
Declaration subinterface for an anonymous class. |
interface |
NewArray
Expression subinterface for expressions which create new arrays. |
interface |
NewClass
Expression subinterface for expressions which create new non-array
objects. |
interface |
Null
Literal subinterface for the null literal. |
interface |
OctalLiteral
OctalLiteral subinterface for octal character literals. |
interface |
ScientificLiteral
Literal subinterface for scientific floating point literals. |
interface |
ShortLiteral
Literal subinterface for short literals. |
interface |
StringLiteral
Literal subinterface for string literals. |
interface |
Super |
interface |
Ternary
Expression subinterface for expressions which have a three operands. |
interface |
This
Models the keyword
this . |
interface |
True
Literal subinterface for true . |
interface |
Unary
Expression subinterface for expressions which have a single operand. |
interface |
UnicodeLiteral
CharLiteral subinterface for unicode character literals. |
interface |
Variable
Expression subinterface for variables (references). |
Modifier and Type | Method and Description |
---|---|
Expression |
Case.getConstant()
Gets the constant expression for this condition.
|
Expression |
Return.getExpression()
Gets the expression for this return statement.
|
Expression |
Field.getExpression()
Gets the initial value of this
Field . |
Expression |
Cast.getExpression()
Gets the
Expression for the cast (the right hand part of the
expression). |
Expression |
ExpressionStatement.getExpression()
Gets the
Expression for this Statement . |
Expression |
Binary.getLValue()
Getter method for the left side.
|
Expression |
Synchronized.getMutex()
Gets the object or expression to synchronize upon.
|
Expression |
ConditionalStatement.getPredicate()
Gets the expression for this condition.
|
Expression |
Accessor.getQualExpression()
Return the qualifier expression of this access.
|
Expression |
ConstructorForwarding.getQualifier() |
Expression |
Binary.getRValue()
Getter method for the right side.
|
Expression |
Throw.getThrowable()
Gets the expression for this throw statement.
|
Expression |
Unary.getValue()
Getter method for the operand.
|
Expression |
AnnotationAttribute.getValue() |
Expression |
Ternary.getValue1()
Accessor method for the first operand.
|
Expression |
Ternary.getValue2()
Accessor method for the second operand.
|
Expression |
Ternary.getValue3()
Accessor method for the third operand.
|
Modifier and Type | Method and Description |
---|---|
List<Expression> |
NewClass.getArgs()
Gets the list of arguments for this instance creation as an list of
Expression . |
List<Expression> |
ArgumentList.getArgs()
Gets the list of arguments as an list of
Expression . |
List<Expression> |
NewArray.getDims()
Gets the list of dimension expressions as an list of
Expression . |
List<Expression> |
ArrayAccess.getDims()
Returns a list of dimension-specifying expressions as an list of
Expression . |
List<Expression> |
AnnotationAttribute.getValuesCopy() |
Modifier and Type | Method and Description |
---|---|
AnnotationAttribute |
Annotation.addAnnotationAttribute(String attributeName,
Expression value)
Creates a new
AnnotationAttribute for a given attribute name set
to a given value. |
NewClass |
NewClass.addArg(Expression e)
Adds the given expression the list of arguments for this new invocation.
|
T |
ArgumentList.addArg(Expression e)
Adds the given expression to the list of arguments for this method
invocation.
|
Let |
Let.addAssign(String name,
Expression expr)
Adds a new assignment to this variable declaration.
|
AnnotationAttribute |
Annotation.addDefaultValueAttribute(Expression... values)
Adds a new attribute without a key and with the given expression as
value.
|
NewArray |
NewArray.addDim(Expression e)
Sets the given expression for the given dimension.
|
ArrayAccess |
ArrayAccess.addDim(Expression expr)
Adds the given expression for the next dimension.
|
For |
For.addInit(Expression expr)
Adds this statement expression to the comma separated list of
initialization expressions.
|
For |
For.addUpdate(Expression update)
Adds this declaration statement to the list of updates.
|
AnnotationAttribute |
AnnotationAttribute.addValue(Expression value) |
Statement |
Block.insertStatement(int index,
Expression expression)
Insert the expression at the specified index.
|
abstract FieldAccess |
VirtualMachine.newAccess(Expression qualifier,
String name)
Expression factory method which returns a new field access with
the given qualifier and name. |
abstract AnnotationAttribute |
VirtualMachine.newAnnotationAttribute(String key,
Expression value,
Expression... additionalValues)
Creates a new annotation attribute with the given name and the given
value.
|
abstract AnnotationAttribute |
VirtualMachine.newAnnotationAttribute(String key,
Expression value,
Expression... additionalValues)
Creates a new annotation attribute with the given name and the given
value.
|
abstract ArrayAccess |
VirtualMachine.newArrayAccess(Expression qual,
String name)
Expression factory method which returns a new array access
expression with the given qualifier and name. |
abstract ArrayInitializer |
VirtualMachine.newArrayInit(Expression[] expressions)
Expression factory method which returns a new array initializer
with the given arguments. |
abstract Assign |
VirtualMachine.newAssign(int type,
Variable left,
Expression right)
Expression factory method which returns a new assignment of the
given type. |
abstract Assign |
VirtualMachine.newAssign(Variable left,
Expression right)
Expression factory method which returns a new assignment of the
SIMPLE type. |
abstract Binary |
VirtualMachine.newBinary(int type,
Expression left,
Expression right)
Expression factory method which returns a new unary function of
the given type. |
abstract Cast |
VirtualMachine.newBrackets(Expression value)
Expression factory method which returns a new expression that
wraps brackets around the expression. |
Case |
Switch.newCase(Expression constant)
Adds a new
Case to the set of cases. |
abstract Cast |
VirtualMachine.newCast(Type type,
Expression value)
Expression factory method which returns a new cast function
having the given type and value. |
DoWhile |
Block.newDoWhile(Expression predicate)
Adds a new
DoWhile statement to this block and returns it. |
ElseIf |
If.newElseIf(Expression predicate)
Adds a new
ElseIf to the list of else-if's. |
If |
Block.newIf(Expression predicate)
Adds a new
If statement to this block and returns it. |
abstract Invoke |
VirtualMachine.newInvoke(Expression qualifier,
String name)
Expression factory method which returns a new method invocation
with the given qualifier and name. |
TryResource |
Try.newResource(Type type,
String name,
Expression expr)
Adds a new resource declaration to this
Try . |
ExpressionStatement |
Block.newStmt(Expression expr)
Adds a new
ExpressionStatement statement to this block on the
given statement Expression and returns it. |
Switch |
Block.newSwitch(Expression integer)
Adds a new
Switch statement to this block and returns it. |
Synchronized |
Block.newSynchronized(Expression mutex)
Adds a new
Synchronized statement to this block and returns it. |
abstract Ternary |
VirtualMachine.newTernary(int type,
Expression one,
Expression two,
Expression three)
Expression factory method which returns a new unary function of
the given type. |
Throw |
Block.newThrow(Expression throwable)
Adds a new
Throw statement to this block and returns it. |
abstract Unary |
VirtualMachine.newUnary(int type,
Expression value)
Expression factory method which returns a new unary function of
the given type. |
While |
Block.newWhile(Expression predicate)
Adds a new
While statement to this block and returns it. |
Lambda |
Lambda.setBody(Expression body)
Sets the body of the
Lambda (as an Expression ). |
Case |
Case.setConstant(Expression expr)
Sets the constant expression for this condition.
|
Return |
Return.setExpression(Expression expr)
Sets the expression for this return statement.
|
Field |
Field.setExpression(Expression e)
Sets the initial value of this
Field . |
Cast |
Cast.setExpression(Expression expr)
Sets the
Expression for the cast (the right hand part of the
expression). |
ExpressionStatement |
ExpressionStatement.setExpression(Expression e)
Sets the
Expression for this Statement . |
Binary |
Binary.setLValue(Expression e)
Setter method for the left side.
|
Synchronized |
Synchronized.setMutex(Expression e)
Sets the object or expression to synchronize upon.
|
ConditionalStatement |
ConditionalStatement.setPredicate(Expression expr)
Sets the expression for this condition.
|
Binary |
Binary.setRValue(Expression e)
Setter method for the right side.
|
Throw |
Throw.setThrowable(Expression expr)
Sets the expression for this throw statement.
|
Unary |
Unary.setValue(Expression e)
Setter method for the operand.
|
AnnotationAttribute |
AnnotationAttribute.setValue(Expression value) |
Ternary |
Ternary.setValue1(Expression e)
Mutator method for the first operand.
|
Ternary |
Ternary.setValue2(Expression e)
Mutator method for the second operand.
|
Ternary |
Ternary.setValue3(Expression e)
Mutator method for the third operand.
|
Modifier and Type | Method and Description |
---|---|
AnnotationAttribute |
AnnotationAttribute.addValues(Iterable<Expression> values) |
Modifier and Type | Class and Description |
---|---|
class |
MExpression
Standard
Expression implementations. |
class |
MLiteral
Standard
Literal implementations. |
Modifier and Type | Method and Description |
---|---|
FieldAccess |
MVM.newAccess(Expression qual,
String name) |
AnnotationAttribute |
MVM.newAnnotationAttribute(String key,
Expression value,
Expression... additionalValues) |
AnnotationAttribute |
MVM.newAnnotationAttribute(String key,
Expression value,
Expression... additionalValues) |
ArrayAccess |
MVM.newArrayAccess(Expression qual,
String name) |
ArrayInitializer |
MVM.newArrayInit(Expression[] expressions) |
Assign |
MVM.newAssign(int type,
Variable l,
Expression r) |
Assign |
MVM.newAssign(Variable l,
Expression r) |
Binary |
MVM.newBinary(int type,
Expression l,
Expression r) |
Cast |
MVM.newBrackets(Expression expression) |
Cast |
MVM.newCast(Type type,
Expression val) |
Invoke |
MVM.newInvoke(Expression qual,
String name) |
Ternary |
MVM.newTernary(int type,
Expression one,
Expression two,
Expression three) |
Unary |
MVM.newUnary(int type,
Expression val) |
Lambda |
MLambda.setBody(Expression body) |
Copyright © 2000–2018 jenesis4java. All rights reserved.