Uses of Class
javassist.bytecode.Bytecode
Packages that use Bytecode
Package
Description
The Javassist Core API.
This package contains the classes for modifying a method body.
Dynamic proxy (similar to
Enhancer
of cglib).-
Uses of Bytecode in javassist
Modifier and TypeMethodDescriptionprotected static Bytecode
CtNewWrappedConstructor.makeBody
(CtClass declaring, ClassFile classfile, int howToCallSuper, CtMethod wrappedBody, CtClass[] parameters, CtMethod.ConstParameter cparam) (package private) static Bytecode
CtNewWrappedMethod.makeBody
(CtClass clazz, ClassFile classfile, CtMethod wrappedBody, CtClass[] parameters, CtClass returnType, CtMethod.ConstParameter cparam) Modifier and TypeMethodDescriptionprivate void
CtField.ArrayInitializer.addNewarray
(Bytecode code) (package private) int
CtField.ArrayInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.CodeInitializer0.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.DoubleInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.FloatInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) abstract int
CtField.Initializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.IntInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.LongInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.MethodInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) Produces codes in which a new object is created and assigned to the field as the initial value.(package private) int
CtField.MultiArrayInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.NewInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) Produces codes in which a new object is created and assigned to the field as the initial value.(package private) int
CtField.ParamInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
CtField.StringInitializer.compile
(CtClass type, String name, Bytecode code, CtClass[] parameters, Javac drv) (package private) int
(package private) int
(package private) int
(package private) int
(package private) int
CtField.ArrayInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.CodeInitializer0.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.DoubleInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.FloatInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) abstract int
CtField.Initializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.IntInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.LongInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.MethodInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) Produces codes for a static field.(package private) int
CtField.MultiArrayInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.NewInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) Produces codes for a static field.(package private) int
CtField.ParamInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) int
CtField.StringInitializer.compileIfStatic
(CtClass type, String name, Bytecode code, Javac drv) (package private) static int
CtNewWrappedMethod.compileParameterList
(Bytecode code, CtClass[] params, int regno) private static void
CtNewWrappedMethod.compileReturn
(Bytecode code, CtClass type) protected final int
CtField.NewInitializer.compileStringParameter
(Bytecode code) private int
CtBehavior.insertAfterAdvice
(Bytecode code, Javac jv, String src, ConstPool cp, CtClass rtype, int varNo) private int
CtBehavior.insertAfterHandler
(boolean asFinally, Bytecode b, CtClass rtype, int returnVarNo, Javac javac, String src) private static void
CtClassType.insertAuxInitializer
(CodeAttribute codeAttr, Bytecode initializer, int stacksize) protected static int
CtNewWrappedMethod.makeBody0
(CtClass clazz, ClassFile classfile, CtMethod wrappedBody, boolean isStatic, CtClass[] parameters, CtClass returnType, CtMethod.ConstParameter cparam, Bytecode code) private int
CtClassType.makeFieldInitializer
(Bytecode code, CtClass[] parameters) private void
CtClassType.modifyClassConstructor
(ClassFile cf, Bytecode code, int stacksize, int localsize) -
Uses of Bytecode in javassist.compiler
Fields in javassist.compiler declared as BytecodeModifier and TypeFieldDescriptionprotected Bytecode
CodeGen.bytecode
private Bytecode
Javac.bytecode
Methods in javassist.compiler that return BytecodeModifier and TypeMethodDescriptionJavac.compileBody
(CtBehavior method, String src) Compiles a method (or constructor) body.Javac.getBytecode()
Returns the produced bytecode.Methods in javassist.compiler with parameters of type BytecodeModifier and TypeMethodDescriptionprotected void
JvstCodeGen.atAssignParamList
(CtClass[] params, Bytecode code) static int
JvstCodeGen.compileParameterList
(Bytecode code, CtClass[] params, int regno) protected void
JvstCodeGen.compileUnwrapValue
(CtClass type, Bytecode code) protected abstract boolean
Returns true if the generated code ends with return, throw, or goto.protected boolean
protected boolean
void
ProceedHandler.doit
(JvstCodeGen gen, Bytecode b, ASTList args) private void
private static void
Javac.makeDefaultBody
(Bytecode b, CtClass type) Constructors in javassist.compiler with parameters of type Bytecode -
Uses of Bytecode in javassist.convert
Methods in javassist.convert with parameters of type Bytecode -
Uses of Bytecode in javassist.expr
Methods in javassist.expr with parameters of type BytecodeModifier and TypeMethodDescriptionvoid
Cast.ProceedForCast.doit
(JvstCodeGen gen, Bytecode bytecode, ASTList args) void
FieldAccess.ProceedForRead.doit
(JvstCodeGen gen, Bytecode bytecode, ASTList args) void
FieldAccess.ProceedForWrite.doit
(JvstCodeGen gen, Bytecode bytecode, ASTList args) void
Instanceof.ProceedForInstanceof.doit
(JvstCodeGen gen, Bytecode bytecode, ASTList args) void
NewArray.ProceedForArray.doit
(JvstCodeGen gen, Bytecode bytecode, ASTList args) void
NewExpr.ProceedForNew.doit
(JvstCodeGen gen, Bytecode bytecode, ASTList args) protected void
(package private) static final void
Expr.storeStack
(CtClass[] params, boolean isStaticCall, int regno, Bytecode bytecode) private static void
Expr.storeStack0
(int i, int n, CtClass[] params, int regno, Bytecode bytecode) -
Uses of Bytecode in javassist.util.proxy
Methods in javassist.util.proxy with parameters of type BytecodeModifier and TypeMethodDescriptionprivate static int
private static int
ProxyFactory.addLoadParameters
(Bytecode code, Class<?>[] params, int offset) private static int
private static void
ProxyFactory.addUnwrapper
(Bytecode code, Class<?> type) private static void
ProxyFactory.callFind2Methods
(Bytecode code, String superMethod, String thisMethod, int index, String desc, int classVar, int arrayVar) private static void
ProxyFactory.makeParameterList
(Bytecode code, Class<?>[] params) private static int
ProxyFactory.makeWrapper
(Bytecode code, Class<?> type, int regno)