Package javassist
Class CtField.StringInitializer
- java.lang.Object
-
- javassist.CtField.Initializer
-
- javassist.CtField.StringInitializer
-
- Enclosing class:
- CtField
static class CtField.StringInitializer extends CtField.Initializer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
value
-
Constructor Summary
Constructors Constructor Description StringInitializer(java.lang.String v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class javassist.CtField.Initializer
byCall, byCall, byCallWithParams, byCallWithParams, byExpr, byExpr, byNew, byNew, byNewArray, byNewArray, byNewWithParams, byNewWithParams, byParameter, check, constant, constant, constant, constant, constant, constant
-
-
-
-
Method Detail
-
compile
int compile(CtClass type, java.lang.String name, Bytecode code, CtClass[] parameters, Javac drv) throws CannotCompileException
- Specified by:
compile
in classCtField.Initializer
- Throws:
CannotCompileException
-
compileIfStatic
int compileIfStatic(CtClass type, java.lang.String name, Bytecode code, Javac drv) throws CannotCompileException
- Specified by:
compileIfStatic
in classCtField.Initializer
- Throws:
CannotCompileException
-
getConstantValue
int getConstantValue(ConstPool cp, CtClass type)
- Overrides:
getConstantValue
in classCtField.Initializer
-
-