Package | Description |
---|---|
net.sourceforge.jenesis4java | |
net.sourceforge.jenesis4java.impl |
Modifier and Type | Interface and Description |
---|---|
interface |
ArrayType
Type subinterface for array types. |
interface |
CalendarClassType |
interface |
ClassType
Type subinterface for class types. |
interface |
PrimitiveType
Type subinterface for primitive types. |
Modifier and Type | Method and Description |
---|---|
Type |
ArrayType.getComponentType()
Gets the component type
|
Type |
Expression.getType()
Returns the return type of this
Expression . |
Type |
FormalParameter.getType()
Getter method for the formal parameter type.
|
Type |
Let.getType()
Gets the type for this declaration.
|
Type |
Field.getType()
Gets the (return) type of this
Field . |
Type |
Method.getType()
Gets the (return) type of this method.
|
abstract Type |
VirtualMachine.type_boolean() |
abstract Type |
VirtualMachine.type_byte() |
abstract Type |
VirtualMachine.type_char() |
abstract Type |
VirtualMachine.type_double() |
abstract Type |
VirtualMachine.type_float() |
abstract Type |
VirtualMachine.type_int() |
abstract Type |
VirtualMachine.type_long() |
abstract Type |
VirtualMachine.type_short() |
abstract Type |
VirtualMachine.type_void() |
Modifier and Type | Method and Description |
---|---|
Lambda |
Lambda.addParameter(Type type,
String name)
Adds a new formal parameter with the given type and name to this
Lambda and returns this Lambda . |
FormalParameter |
Method.addParameter(Type type,
String name)
Adds a new
FormalParameter to this method signature with the
given type and name and returns the Method . |
FormalParameter |
Constructor.addParameter(Type type,
String name)
Adds a new formal parameter to the list of parameters with the given
Type and name, and returns the FormalParameter object. |
Catch |
Catch.addThrowable(Type type,
String name)
Adds a formal parameter to this catch clause.
|
boolean |
ClassDeclaration.isMethodAlreadyDefined(Type type,
String name)
Creates a new static initialization block in this class
|
abstract NewAnonymousClass |
VirtualMachine.newAnon(Type type)
Expression factory method which returns a new anonymous class
instance creation expression for the given type. |
abstract NewAnonymousClass |
VirtualMachine.newAnon(Type type,
Comparator comparator) |
abstract NewArray |
VirtualMachine.newArray(Type type)
Expression factory method which returns a new array instance
creation expression for the given type. |
abstract Cast |
VirtualMachine.newCast(Type type,
Expression value)
Expression factory method which returns a new cast function
having the given type and value. |
Catch |
Try.newCatch(Type type,
String name)
Adds a new
Catch statement to this Try . |
abstract NewClass |
VirtualMachine.newClass(Type type)
Expression factory method which returns a new class instance
creation expression for the given type. |
Constant |
Interface.newConstant(Type type,
String name)
Adds a new constant to this interface.
|
Let |
Block.newDeclarationLet(Type type)
Adds a new
Let statement to declaration section of this block for
the given type and returns it. |
ClassField |
ClassDeclaration.newField(Type type,
String name)
Creates a new field in this class with the given type and name.
|
Let |
Block.newLet(Type type)
Adds a new
Let statement to this block for the given type and
returns it. |
AbstractMethod |
Interface.newMethod(Type type,
String name)
Adds a new abstract method signature to this interface.
|
ClassMethod |
ClassDeclaration.newMethod(Type type,
String name)
Creates a new method in this class with the given type and name.
|
Method |
TypeDeclaration.newMethod(Type type,
String name)
Creates a new method with the given type and name.
|
TryResource |
Try.newResource(Type type,
String name,
Expression expr)
Adds a new resource declaration to this
Try . |
abstract Variable |
VirtualMachine.newVar(Type type)
Expression factory method which returns a new variable with the
given name. |
Let |
For.setInit(Type type)
Sets this declaration statement to a
Let statement with the given
Type . |
Catch |
Catch.setThrowable(Type type,
String name)
Sets the formal parameter for this catch clause.
|
NewArray |
NewArray.setType(Type type)
Sets the given type for this array creation.
|
NewClass |
NewClass.setType(Type type)
Sets the given type for this instance creation.
|
FormalParameter |
FormalParameter.setType(Type type)
Setter method for the formal parameter type.
|
Let |
Let.setType(Type expr)
Sets the type for this declaration.
|
Field |
Field.setType(Type type)
Sets the (return) type of this
Field . |
Method |
Method.setType(Type type)
Sets the (return) type of this method.
|
Modifier and Type | Method and Description |
---|---|
Type |
MLiteral.getType() |
Type |
MVM.type_boolean() |
Type |
MVM.type_byte() |
Type |
MVM.type_char() |
Type |
MVM.type_double() |
Type |
MVM.type_float() |
Type |
MVM.type_int() |
Type |
MVM.type_long() |
Type |
MVM.type_short() |
Type |
MVM.type_void() |
Modifier and Type | Method and Description |
---|---|
Lambda |
MLambda.addParameter(Type type,
String name) |
NewAnonymousClass |
MVM.newAnon(Type type) |
NewAnonymousClass |
MVM.newAnon(Type type,
Comparator comparator) |
NewArray |
MVM.newArray(Type type) |
ArrayType |
MVM.newArray(Type type,
int dims) |
Cast |
MVM.newCast(Type type,
Expression val) |
NewClass |
MVM.newClass(Type type) |
Variable |
MVM.newVar(Type type) |
Copyright © 2000–2018 jenesis4java. All rights reserved.