# Uses of Class
javassist.CtField.Initializer

Packages that use CtField.Initializer
Package
Description
javassist
The Javassist Core API.

## Uses of CtField.Initializer in javassist

Methods in javassist that return CtField.Initializer
Modifier and Type
Method
Description
`static CtField.Initializer`
CtField.Initializer.`byCall(CtClass methodClass, String methodName)`
Makes an initializer calling a static method.
`static CtField.Initializer`
CtField.Initializer.`byCall(CtClass methodClass, String methodName, String[] stringParams)`
Makes an initializer calling a static method.
`static CtField.Initializer`
CtField.Initializer.`byCallWithParams(CtClass methodClass, String methodName)`
Makes an initializer calling a static method.
`static CtField.Initializer`
CtField.Initializer.`byCallWithParams(CtClass methodClass, String methodName, String[] stringParams)`
Makes an initializer calling a static method.
`static CtField.Initializer`
CtField.Initializer.`byExpr(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, 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, 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(String s)`
Makes an initializer that assigns a constant string value.
Methods in javassist with parameters of type CtField.Initializer
Modifier and Type
Method
Description
`void`
CtClass.`addField(CtField f, CtField.Initializer init)`
Adds a field with an initial value.