Package | Description |
---|---|
javassist |
The Javassist Core API.
|
Modifier and Type | Method and Description |
---|---|
static CtField.Initializer |
CtField.Initializer.byCall(CtClass methodClass,
java.lang.String methodName)
Makes an initializer calling a static method.
|
static CtField.Initializer |
CtField.Initializer.byCall(CtClass methodClass,
java.lang.String methodName,
java.lang.String[] stringParams)
Makes an initializer calling a static method.
|
static CtField.Initializer |
CtField.Initializer.byCallWithParams(CtClass methodClass,
java.lang.String methodName)
Makes an initializer calling a static method.
|
static CtField.Initializer |
CtField.Initializer.byCallWithParams(CtClass methodClass,
java.lang.String methodName,
java.lang.String[] stringParams)
Makes an initializer calling a static method.
|
static CtField.Initializer |
CtField.Initializer.byExpr(java.lang.String source)
Makes an initializer.
|
static CtField.Initializer |
CtField.Initializer.byNew(CtClass objectType)
Makes an initializer creating a new object.
|
static CtField.Initializer |
CtField.Initializer.byNew(CtClass objectType,
java.lang.String[] stringParams)
Makes an initializer creating a new object.
|
static CtField.Initializer |
CtField.Initializer.byNewArray(CtClass type,
int size)
Makes an initializer creating a new array.
|
static CtField.Initializer |
CtField.Initializer.byNewArray(CtClass type,
int[] sizes)
Makes an initializer creating a new multi-dimensional array.
|
static CtField.Initializer |
CtField.Initializer.byNewWithParams(CtClass objectType)
Makes an initializer creating a new object.
|
static CtField.Initializer |
CtField.Initializer.byNewWithParams(CtClass objectType,
java.lang.String[] stringParams)
Makes an initializer creating a new object.
|
static CtField.Initializer |
CtField.Initializer.byParameter(int nth)
Makes an initializer using a constructor parameter.
|
static CtField.Initializer |
CtField.Initializer.constant(boolean b)
Makes an initializer that assigns a constant boolean value.
|
static CtField.Initializer |
CtField.Initializer.constant(double d)
Makes an initializer that assigns a constant double value.
|
static CtField.Initializer |
CtField.Initializer.constant(float l)
Makes an initializer that assigns a constant float value.
|
static CtField.Initializer |
CtField.Initializer.constant(int i)
Makes an initializer that assigns a constant integer value.
|
static CtField.Initializer |
CtField.Initializer.constant(long l)
Makes an initializer that assigns a constant long value.
|
static CtField.Initializer |
CtField.Initializer.constant(java.lang.String s)
Makes an initializer that assigns a constant string value.
|
Modifier and Type | Method and Description |
---|---|
void |
CtClass.addField(CtField f,
CtField.Initializer init)
Adds a field with an initial value.
|
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.