static class CtField.IntInitializer extends CtField.Initializer
Modifier and Type | Field and Description |
---|---|
(package private) int |
value |
Constructor and Description |
---|
IntInitializer(int v) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
check(java.lang.String desc) |
(package private) int |
compile(CtClass type,
java.lang.String name,
Bytecode code,
CtClass[] parameters,
Javac drv) |
(package private) int |
compileIfStatic(CtClass type,
java.lang.String name,
Bytecode code,
Javac drv) |
(package private) int |
getConstantValue(ConstPool cp,
CtClass type) |
byCall, byCall, byCallWithParams, byCallWithParams, byExpr, byExpr, byNew, byNew, byNewArray, byNewArray, byNewWithParams, byNewWithParams, byParameter, constant, constant, constant, constant, constant, constant
void check(java.lang.String desc) throws CannotCompileException
check
in class CtField.Initializer
CannotCompileException
int compile(CtClass type, java.lang.String name, Bytecode code, CtClass[] parameters, Javac drv) throws CannotCompileException
compile
in class CtField.Initializer
CannotCompileException
int compileIfStatic(CtClass type, java.lang.String name, Bytecode code, Javac drv) throws CannotCompileException
compileIfStatic
in class CtField.Initializer
CannotCompileException
int getConstantValue(ConstPool cp, CtClass type)
getConstantValue
in class CtField.Initializer