Uses of Class
javassist.bytecode.MethodInfo
-
Packages that use MethodInfo Package Description javassist The Javassist Core API.javassist.bytecode Bytecode-level API.javassist.bytecode.analysis Bytecode Analysis API.javassist.bytecode.stackmap javassist.compiler javassist.convert javassist.expr This package contains the classes for modifying a method body.javassist.util.proxy Dynamic proxy (similar toEnhancerof cglib). -
-
Uses of MethodInfo in javassist
Fields in javassist declared as MethodInfo Modifier and Type Field Description protected MethodInfoCtBehavior. methodInfoMethods in javassist that return MethodInfo Modifier and Type Method Description MethodInfoCtBehavior. getMethodInfo()Returns theMethodInforepresenting this method/constructor in the class file.MethodInfoCtBehavior. getMethodInfo2()Returns theMethodInforepresenting the method/constructor in the class file (read only).Methods in javassist with parameters of type MethodInfo Modifier and Type Method Description protected voidCodeConverter. doit(CtClass clazz, MethodInfo minfo, ConstPool cp)Performs code conversion.static CtMethodCtMethod. make(MethodInfo minfo, CtClass declaring)Creates a method from aMethodInfoobject.(package private) static voidCtBehavior. setBody0(CtClass srcClass, MethodInfo srcInfo, CtClass destClass, MethodInfo destInfo, ClassMap map)(package private) static java.lang.Object[][]CtClassType. toAnnotationType(boolean ignoreNotFound, ClassPool cp, ParameterAnnotationsAttribute a1, ParameterAnnotationsAttribute a2, MethodInfo minfo)Constructors in javassist with parameters of type MethodInfo Constructor Description CtBehavior(CtClass clazz, MethodInfo minfo)CtConstructor(MethodInfo minfo, CtClass declaring)CtMethod(MethodInfo minfo, CtClass declaring) -
Uses of MethodInfo in javassist.bytecode
Methods in javassist.bytecode that return MethodInfo Modifier and Type Method Description MethodInfoClassFile. getMethod(java.lang.String name)Returns the method with the specified name.MethodInfoClassFile. getStaticInitializer()Returns a static initializer (class initializer), or null if it does not exist.Methods in javassist.bytecode with parameters of type MethodInfo Modifier and Type Method Description voidClassFile. addMethod(MethodInfo minfo)Appends a method to the class.voidClassFile. addMethod2(MethodInfo minfo)Just appends a method to the class.private static booleanClassFile. isDuplicated(MethodInfo newMethod, java.lang.String newName, java.lang.String newDesc, MethodInfo minfo, java.util.ListIterator it)private static booleanClassFile. notBridgeMethod(MethodInfo minfo)private voidMethodInfo. read(MethodInfo src, java.lang.String methodname, java.util.Map classnames)private voidClassFile. testExistingMethod(MethodInfo newMinfo)Constructors in javassist.bytecode with parameters of type MethodInfo Constructor Description BadBytecode(MethodInfo minfo, java.lang.Throwable cause)MethodInfo(ConstPool cp, java.lang.String methodname, MethodInfo src, java.util.Map classnameMap)Constructs a copy ofmethod_infostructure. -
Uses of MethodInfo in javassist.bytecode.analysis
Fields in javassist.bytecode.analysis declared as MethodInfo Modifier and Type Field Description (package private) MethodInfoControlFlow.Block. methodprivate MethodInfoControlFlow. methodInfoMethods in javassist.bytecode.analysis with parameters of type MethodInfo Modifier and Type Method Description Frame[]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 voidAnalyzer. analyzeNextEntry(MethodInfo method, CodeIterator iter, IntQueue queue, Executor executor)private Analyzer.ExceptionInfo[]Analyzer. buildExceptionInfo(MethodInfo method)voidExecutor. execute(MethodInfo method, int pos, CodeIterator iter, Frame frame, Subroutine subroutine)Execute the instruction, modeling the effects on the specified frame and subroutine.private FrameAnalyzer. firstFrame(MethodInfo method, int maxLocals, int maxStack)private voidAnalyzer. mergeExceptionHandlers(IntQueue queue, MethodInfo method, int pos, Frame frame)Subroutine[]SubroutineScanner. scan(MethodInfo method)Constructors in javassist.bytecode.analysis with parameters of type MethodInfo Constructor Description 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 MethodInfo Modifier and Type Method Description BasicBlock[]BasicBlock.Maker. make(MethodInfo minfo)static StackMapTableMapMaker. make(ClassPool classes, MethodInfo minfo)Computes the stack map table of the given method and returns it.static StackMapMapMaker. 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 Constructor Description MapMaker(ClassPool classes, MethodInfo minfo, CodeAttribute ca) -
Uses of MethodInfo in javassist.compiler
Fields in javassist.compiler declared as MethodInfo Modifier and Type Field Description MethodInfoMemberResolver.Method. infoprotected MethodInfoMemberCodeGen. thisMethodprotected MethodInfoTypeChecker. thisMethodMethods in javassist.compiler that return MethodInfo Modifier and Type Method Description MethodInfoAccessorMaker. getFieldGetter(FieldInfo finfo, boolean is_static)Returns the method_info representing the added getter.MethodInfoAccessorMaker. getFieldSetter(FieldInfo finfo, boolean is_static)Returns the method_info representing the added setter.Methods in javassist.compiler with parameters of type MethodInfo Modifier and Type Method Description protected java.lang.StringMemberCodeGen. getAccessibleConstructor(java.lang.String desc, CtClass declClass, MethodInfo minfo)protected java.lang.StringMemberCodeGen. getAccessiblePrivate(java.lang.String methodName, java.lang.String desc, java.lang.String newDesc, MethodInfo minfo, CtClass declClass)java.lang.StringAccessorMaker. getConstructor(CtClass c, java.lang.String desc, MethodInfo orig)java.lang.StringAccessorMaker. getMethodAccessor(java.lang.String name, java.lang.String desc, java.lang.String accDesc, MethodInfo orig)Returns the name of the method for accessing a private method.MemberResolver.MethodMemberResolver. lookupMethod(CtClass clazz, CtClass currentClass, MethodInfo current, java.lang.String methodName, int[] argTypes, int[] argDims, java.lang.String[] argClassNames)voidTypeChecker. setThisMethod(MethodInfo m)Records the currently compiled method.Constructors in javassist.compiler with parameters of type MethodInfo Constructor Description Method(CtClass c, MethodInfo i, int n) -
Uses of MethodInfo in javassist.convert
Methods in javassist.convert with parameters of type MethodInfo Modifier and Type Method Description private voidTransformAccessArrayField. initFrames(CtClass clazz, MethodInfo minfo)voidTransformAccessArrayField. initialize(ConstPool cp, CtClass clazz, MethodInfo minfo)voidTransformer. initialize(ConstPool cp, CtClass clazz, MethodInfo minfo) -
Uses of MethodInfo in javassist.expr
Fields in javassist.expr declared as MethodInfo Modifier and Type Field Description (package private) MethodInfoExpr. thisMethodMethods in javassist.expr with parameters of type MethodInfo Modifier and Type Method Description booleanExprEditor. doit(CtClass clazz, MethodInfo minfo)Undocumented method.(package private) booleanExprEditor. doit(CtClass clazz, MethodInfo minfo, ExprEditor.LoopContext context, CodeIterator iterator, int endPos)Visits each bytecode in the given range.(package private) booleanExprEditor. loopBody(CodeIterator iterator, CtClass clazz, MethodInfo minfo, ExprEditor.LoopContext context)Constructors in javassist.expr with parameters of type MethodInfo Constructor Description Cast(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.ConstructorCall(int pos, CodeIterator i, CtClass decl, MethodInfo m)Undocumented constructor.Expr(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.FieldAccess(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op)Handler(ExceptionTable et, int nth, CodeIterator it, CtClass declaring, MethodInfo m)Undocumented constructor.Instanceof(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.MethodCall(int pos, CodeIterator i, CtClass declaring, MethodInfo m)Undocumented constructor.NewArray(int pos, CodeIterator i, CtClass declaring, MethodInfo m, int op)NewExpr(int pos, CodeIterator i, CtClass declaring, MethodInfo m, java.lang.String type, int np)Undocumented constructor. -
Uses of MethodInfo in javassist.util.proxy
Methods in javassist.util.proxy that return MethodInfo Modifier and Type Method Description private static MethodInfoProxyFactory. makeConstructor(java.lang.String thisClassName, java.lang.reflect.Constructor cons, ConstPool cp, java.lang.Class superClass, boolean doHandlerInit)private MethodInfoProxyFactory. makeDelegator(java.lang.reflect.Method meth, java.lang.String desc, ConstPool cp, java.lang.Class declClass, java.lang.String delegatorName)private static MethodInfoProxyFactory. makeForwarder(java.lang.String thisClassName, java.lang.reflect.Method meth, java.lang.String desc, ConstPool cp, java.lang.Class declClass, java.lang.String delegatorName, int index, java.util.ArrayList forwarders)private static MethodInfoProxyFactory. makeWriteReplace(ConstPool cp)Methods in javassist.util.proxy with parameters of type MethodInfo Modifier and Type Method Description private static voidProxyFactory. setThrows(MethodInfo minfo, ConstPool cp, java.lang.Class[] exceptions)private static voidProxyFactory. setThrows(MethodInfo minfo, ConstPool cp, java.lang.reflect.Method orig)
-