static class CtField.StringInitializer extends CtField.Initializer
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
value |
| Constructor and Description |
|---|
StringInitializer(java.lang.String v) |
| Modifier and Type | Method and Description |
|---|---|
(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, check, constant, constant, constant, constant, constant, constantint compile(CtClass type, java.lang.String name, Bytecode code, CtClass[] parameters, Javac drv) throws CannotCompileException
compile in class CtField.InitializerCannotCompileExceptionint compileIfStatic(CtClass type, java.lang.String name, Bytecode code, Javac drv) throws CannotCompileException
compileIfStatic in class CtField.InitializerCannotCompileExceptionint getConstantValue(ConstPool cp, CtClass type)
getConstantValue in class CtField.Initializer