Uses of Class
javassist.bytecode.MethodInfo
Packages that use MethodInfo
Package
Description
The Javassist Core API.
Bytecode-level API.
Bytecode Analysis API.
This package contains the classes for modifying a method body.
Dynamic proxy (similar to
Enhancer
of cglib).-
Uses of MethodInfo in javassist
Fields in javassist declared as MethodInfoMethods in javassist that return MethodInfoModifier and TypeMethodDescriptionCtBehavior.getMethodInfo()
Returns theMethodInfo
representing this method/constructor in the class file.CtBehavior.getMethodInfo2()
Returns theMethodInfo
representing the method/constructor in the class file (read only).Methods in javassist with parameters of type MethodInfoModifier and TypeMethodDescriptionprotected void
CodeConverter.doit
(CtClass clazz, MethodInfo minfo, ConstPool cp) Performs code conversion.static CtMethod
CtMethod.make
(MethodInfo minfo, CtClass declaring) Creates a method from aMethodInfo
object.(package private) static void
CtBehavior.setBody0
(CtClass srcClass, MethodInfo srcInfo, CtClass destClass, MethodInfo destInfo, ClassMap map) (package private) static Object[][]
CtClassType.toAnnotationType
(boolean ignoreNotFound, ClassPool cp, ParameterAnnotationsAttribute a1, ParameterAnnotationsAttribute a2, MethodInfo minfo) Constructors in javassist with parameters of type MethodInfoModifierConstructorDescriptionprotected
CtBehavior
(CtClass clazz, MethodInfo minfo) protected
CtConstructor
(MethodInfo minfo, CtClass declaring) (package private)
CtMethod
(MethodInfo minfo, CtClass declaring) -
Uses of MethodInfo in javassist.bytecode
Fields in javassist.bytecode with type parameters of type MethodInfoMethods in javassist.bytecode that return MethodInfoModifier and TypeMethodDescriptionReturns the method with the specified name.ClassFile.getStaticInitializer()
Returns a static initializer (class initializer), or null if it does not exist.Methods in javassist.bytecode that return types with arguments of type MethodInfoModifier and TypeMethodDescriptionClassFile.getMethods()
Returns all the methods declared in the class.Methods in javassist.bytecode with parameters of type MethodInfoModifier and TypeMethodDescriptionvoid
ClassFile.addMethod
(MethodInfo minfo) Appends a method to the class.final void
ClassFile.addMethod2
(MethodInfo minfo) Just appends a method to the class.private static boolean
ClassFile.isDuplicated
(MethodInfo newMethod, String newName, String newDesc, MethodInfo minfo, ListIterator<MethodInfo> it) private static boolean
ClassFile.notBridgeMethod
(MethodInfo minfo) private void
private void
ClassFile.testExistingMethod
(MethodInfo newMinfo) Method parameters in javassist.bytecode with type arguments of type MethodInfoModifier and TypeMethodDescriptionprivate static boolean
ClassFile.isDuplicated
(MethodInfo newMethod, String newName, String newDesc, MethodInfo minfo, ListIterator<MethodInfo> it) Constructors in javassist.bytecode with parameters of type MethodInfoModifierConstructorDescriptionBadBytecode
(MethodInfo minfo, Throwable cause) MethodInfo
(ConstPool cp, String methodname, MethodInfo src, Map<String, String> classnameMap) Constructs a copy ofmethod_info
structure. -
Uses of MethodInfo in javassist.bytecode.analysis
Fields in javassist.bytecode.analysis declared as MethodInfoModifier and TypeFieldDescription(package private) MethodInfo
ControlFlow.Block.method
private MethodInfo
ControlFlow.methodInfo
Methods in javassist.bytecode.analysis with parameters of type MethodInfoModifier and TypeMethodDescriptionFrame[]
Analyzer.analyze
(CtClass clazz, MethodInfo method) Performs data-flow analysis on a method and returns an array, indexed by instruction position, containing the starting frame state of all reachable instructions.private void
Analyzer.analyzeNextEntry
(MethodInfo method, CodeIterator iter, IntQueue queue, Executor executor) private Analyzer.ExceptionInfo[]
Analyzer.buildExceptionInfo
(MethodInfo method) void
Executor.execute
(MethodInfo method, int pos, CodeIterator iter, Frame frame, Subroutine subroutine) Execute the instruction, modeling the effects on the specified frame and subroutine.private Frame
Analyzer.firstFrame
(MethodInfo method, int maxLocals, int maxStack) private void
Analyzer.mergeExceptionHandlers
(IntQueue queue, MethodInfo method, int pos, Frame frame) SubroutineScanner.scan
(MethodInfo method) Constructors in javassist.bytecode.analysis with parameters of type MethodInfoModifierConstructorDescription(package private)
Block
(int pos, MethodInfo minfo) ControlFlow
(CtClass ctclazz, MethodInfo minfo) Constructs a control-flow analyzer. -
Uses of MethodInfo in javassist.bytecode.stackmap
Methods in javassist.bytecode.stackmap with parameters of type MethodInfoModifier and TypeMethodDescriptionBasicBlock.Maker.make
(MethodInfo minfo) static StackMapTable
MapMaker.make
(ClassPool classes, MethodInfo minfo) Computes the stack map table of the given method and returns it.static StackMap
MapMaker.make2
(ClassPool classes, MethodInfo minfo) Computes the stack map table for J2ME.static TypedBlock[]
TypedBlock.makeBlocks
(MethodInfo minfo, CodeAttribute ca, boolean optimize) Divides the method body into basic blocks.Constructors in javassist.bytecode.stackmap with parameters of type MethodInfo -
Uses of MethodInfo in javassist.compiler
Fields in javassist.compiler declared as MethodInfoModifier and TypeFieldDescriptionMemberResolver.Method.info
protected MethodInfo
MemberCodeGen.thisMethod
protected MethodInfo
TypeChecker.thisMethod
Methods in javassist.compiler that return MethodInfoModifier and TypeMethodDescriptionAccessorMaker.getFieldGetter
(FieldInfo finfo, boolean is_static) Returns the method_info representing the added getter.AccessorMaker.getFieldSetter
(FieldInfo finfo, boolean is_static) Returns the method_info representing the added setter.Methods in javassist.compiler with parameters of type MethodInfoModifier and TypeMethodDescriptionprotected String
MemberCodeGen.getAccessibleConstructor
(String desc, CtClass declClass, MethodInfo minfo) protected String
MemberCodeGen.getAccessiblePrivate
(String methodName, String desc, String newDesc, MethodInfo minfo, CtClass declClass) AccessorMaker.getConstructor
(CtClass c, String desc, MethodInfo orig) AccessorMaker.getMethodAccessor
(String name, String desc, String accDesc, MethodInfo orig) Returns the name of the method for accessing a private method.MemberResolver.lookupMethod
(CtClass clazz, CtClass currentClass, MethodInfo current, String methodName, int[] argTypes, int[] argDims, String[] argClassNames) void
TypeChecker.setThisMethod
(MethodInfo m) Records the currently compiled method.Constructors in javassist.compiler with parameters of type MethodInfo -
Uses of MethodInfo in javassist.convert
Methods in javassist.convert with parameters of type MethodInfoModifier and TypeMethodDescriptionprivate void
TransformAccessArrayField.initFrames
(CtClass clazz, MethodInfo minfo) void
TransformAccessArrayField.initialize
(ConstPool cp, CtClass clazz, MethodInfo minfo) void
Transformer.initialize
(ConstPool cp, CtClass clazz, MethodInfo minfo) -
Uses of MethodInfo in javassist.expr
Fields in javassist.expr declared as MethodInfoMethods in javassist.expr with parameters of type MethodInfoModifier and TypeMethodDescriptionboolean
ExprEditor.doit
(CtClass clazz, MethodInfo minfo) Undocumented method.(package private) boolean
ExprEditor.doit
(CtClass clazz, MethodInfo minfo, ExprEditor.LoopContext context, CodeIterator iterator, int endPos) Visits each bytecode in the given range.(package private) final boolean
ExprEditor.loopBody
(CodeIterator iterator, CtClass clazz, MethodInfo minfo, ExprEditor.LoopContext context) Constructors in javassist.expr with parameters of type MethodInfoModifierConstructorDescriptionprotected
Cast
(int pos, CodeIterator i, CtClass declaring, MethodInfo m) Undocumented constructor.protected
ConstructorCall
(int pos, CodeIterator i, CtClass decl, MethodInfo m) Undocumented constructor.protected
Expr
(int pos, CodeIterator i, CtClass declaring, MethodInfo m) Undocumented constructor.protected
FieldAccess
(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op) protected
Handler
(ExceptionTable et, int nth, CodeIterator it, CtClass declaring, MethodInfo m) Undocumented constructor.protected
Instanceof
(int pos, CodeIterator i, CtClass declaring, MethodInfo m) Undocumented constructor.protected
MethodCall
(int pos, CodeIterator i, CtClass declaring, MethodInfo m) Undocumented constructor.protected
NewArray
(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op) protected
NewExpr
(int pos, CodeIterator i, CtClass declaring, MethodInfo m, String type, int np) Undocumented constructor. -
Uses of MethodInfo in javassist.util.proxy
Methods in javassist.util.proxy that return MethodInfoModifier and TypeMethodDescriptionprivate static MethodInfo
ProxyFactory.makeConstructor
(String thisClassName, Constructor<?> cons, ConstPool cp, Class<?> superClass, boolean doHandlerInit) private MethodInfo
ProxyFactory.makeDelegator
(Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName) private static MethodInfo
ProxyFactory.makeForwarder
(String thisClassName, Method meth, String desc, ConstPool cp, Class<?> declClass, String delegatorName, int index, List<ProxyFactory.Find2MethodsArgs> forwarders) private static MethodInfo
ProxyFactory.makeWriteReplace
(ConstPool cp) Methods in javassist.util.proxy with parameters of type MethodInfoModifier and TypeMethodDescriptionprivate static void
ProxyFactory.setThrows
(MethodInfo minfo, ConstPool cp, Class<?>[] exceptions) private static void
ProxyFactory.setThrows
(MethodInfo minfo, ConstPool cp, Method orig)