Uses of Class
org.hotswap.agent.javassist.CtMethod
-
Packages that use CtMethod Package Description org.hotswap.agent.javassist The Javassist Core API.org.hotswap.agent.javassist.bytecode Bytecode-level API.org.hotswap.agent.javassist.bytecode.analysis Bytecode Analysis API.org.hotswap.agent.javassist.compiler org.hotswap.agent.javassist.convert org.hotswap.agent.javassist.expr This package contains the classes for modifying a method body.org.hotswap.agent.javassist.tools.reflect Runtime Behavioral Reflection. -
-
Uses of CtMethod in org.hotswap.agent.javassist
Methods in org.hotswap.agent.javassist that return CtMethod Modifier and Type Method Description static CtMethodCtNewMethod. abstractMethod(CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, CtClass declaring)Creates a public abstract method.static CtMethodCtNewMethod. copy(CtMethod src, String name, CtClass declaring, ClassMap map)Creates a copy of a method with a new name.static CtMethodCtNewMethod. copy(CtMethod src, CtClass declaring, ClassMap map)Creates a copy of a method.static CtMethodCtNewMethod. delegator(CtMethod delegate, CtClass declaring)Creates a method forwarding to a delegate in a super class.CtMethodCtClass. getDeclaredMethod(String name)Retrieves the method with the specified name among the methods declared in the class.CtMethodCtClass. getDeclaredMethod(String name, CtClass[] params)Retrieves the method with the specified name and parameter types among the methods declared in the class.CtMethod[]CtClass. getDeclaredMethods()Gets all methods declared in the class.CtMethod[]CtClass. getDeclaredMethods(String name)Retrieves methods with the specified name among the methods declared in the class.CtMethodCtClass. getEnclosingMethod()Deprecated.The enclosing method might be a constructor.CtMethodClassPool. getMethod(String classname, String methodname)Reads a class file and obtains a compile-time method.CtMethodCtClass. getMethod(String name, String desc)Returns the method with the given name and signature.CtMethod[]CtClass. getMethods()Returns an array containingCtMethodobjects representing all the non-private methods of the class.static CtMethodCtNewMethod. getter(String methodName, CtField field)Creates a public getter method.static CtMethodCtMethod. make(String src, CtClass declaring)Compiles the given source code and creates a method.static CtMethodCtMethod. make(MethodInfo minfo, CtClass declaring)Creates a method from aMethodInfoobject.static CtMethodCtNewMethod. make(int modifiers, CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, String body, CtClass declaring)Creates a method.static CtMethodCtNewMethod. make(String src, CtClass declaring)Compiles the given source code and creates a method.static CtMethodCtNewMethod. make(String src, CtClass declaring, String delegateObj, String delegateMethod)Compiles the given source code and creates a method.static CtMethodCtNewMethod. make(CtClass returnType, String mname, CtClass[] parameters, CtClass[] exceptions, String body, CtClass declaring)Creates a public (non-static) method.static CtMethodCtNewMethod. setter(String methodName, CtField field)Creates a public setter method.CtMethodCtConstructor. toMethod(String name, CtClass declaring)Makes a copy of this constructor and converts it into a method.CtMethodCtConstructor. toMethod(String name, CtClass declaring, ClassMap map)Makes a copy of this constructor and converts it into a method.static CtMethodCtNewMethod. wrapped(CtClass returnType, String mname, CtClass[] parameterTypes, CtClass[] exceptionTypes, CtMethod body, CtMethod.ConstParameter constParam, CtClass declaring)Creates a wrapped method.Methods in org.hotswap.agent.javassist with parameters of type CtMethod Modifier and Type Method Description voidCtClass. addMethod(CtMethod m)Adds a method.static CtMethodCtNewMethod. copy(CtMethod src, String name, CtClass declaring, ClassMap map)Creates a copy of a method with a new name.static CtMethodCtNewMethod. copy(CtMethod src, CtClass declaring, ClassMap map)Creates a copy of a method.static CtMethodCtNewMethod. delegator(CtMethod delegate, CtClass declaring)Creates a method forwarding to a delegate in a super class.voidCodeConverter. insertAfterMethod(CtMethod origMethod, CtMethod afterMethod)Inserts a call to another method after an existing method call.voidCodeConverter. insertBeforeMethod(CtMethod origMethod, CtMethod beforeMethod)Insert a call to another method before an existing method call.static CtConstructorCtNewConstructor. make(CtClass[] parameters, CtClass[] exceptions, int howto, CtMethod body, CtMethod.ConstParameter cparam, CtClass declaring)Creates a public constructor.voidCodeConverter. redirectMethodCall(String oldMethodName, CtMethod newMethod)Correct invocations to a method that has been renamed.voidCodeConverter. redirectMethodCall(CtMethod origMethod, CtMethod substMethod)Modify method invocations in a method body so that a different method will be invoked.voidCtClass. removeMethod(CtMethod m)Removes a method declared in this class.voidCtMethod. setBody(CtMethod src, ClassMap map)Copies a method body from another method.voidCtMethod. setWrappedBody(CtMethod mbody, CtMethod.ConstParameter constParam)Replace a method body with a new method body wrapping the given method.static CtMethodCtNewMethod. wrapped(CtClass returnType, String mname, CtClass[] parameterTypes, CtClass[] exceptionTypes, CtMethod body, CtMethod.ConstParameter constParam, CtClass declaring)Creates a wrapped method.Constructors in org.hotswap.agent.javassist with parameters of type CtMethod Constructor Description CtMethod(CtMethod src, CtClass declaring, ClassMap map)Creates a copy of aCtMethodobject. -
Uses of CtMethod in org.hotswap.agent.javassist.bytecode
Methods in org.hotswap.agent.javassist.bytecode with parameters of type CtMethod Modifier and Type Method Description voidInstructionPrinter. print(CtMethod method)Prints the bytecode instructions of a given method.static voidInstructionPrinter. print(CtMethod method, PrintStream stream)Prints the bytecode instructions of a given method. -
Uses of CtMethod in org.hotswap.agent.javassist.bytecode.analysis
Methods in org.hotswap.agent.javassist.bytecode.analysis with parameters of type CtMethod Modifier and Type Method Description Frame[]Analyzer. analyze(CtMethod 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.voidFramePrinter. print(CtMethod method)Prints the instructions and the frame states of the given method.Constructors in org.hotswap.agent.javassist.bytecode.analysis with parameters of type CtMethod Constructor Description ControlFlow(CtMethod method)Constructs a control-flow analyzer for the given method. -
Uses of CtMethod in org.hotswap.agent.javassist.compiler
Methods in org.hotswap.agent.javassist.compiler with parameters of type CtMethod Modifier and Type Method Description voidMemberCodeGen. setThisMethod(CtMethod m)Records the currently compiled method. -
Uses of CtMethod in org.hotswap.agent.javassist.convert
Constructors in org.hotswap.agent.javassist.convert with parameters of type CtMethod Constructor Description TransformAfter(Transformer next, CtMethod origMethod, CtMethod afterMethod)TransformBefore(Transformer next, CtMethod origMethod, CtMethod beforeMethod)TransformCall(Transformer next, String oldMethodName, CtMethod substMethod)TransformCall(Transformer next, CtMethod origMethod, CtMethod substMethod) -
Uses of CtMethod in org.hotswap.agent.javassist.expr
Methods in org.hotswap.agent.javassist.expr that return CtMethod Modifier and Type Method Description CtMethodConstructorCall. getMethod()Always throws aNotFoundException.CtMethodMethodCall. getMethod()Returns the called method. -
Uses of CtMethod in org.hotswap.agent.javassist.tools.reflect
Fields in org.hotswap.agent.javassist.tools.reflect declared as CtMethod Modifier and Type Field Description protected CtMethodReflection. trapMethodprotected CtMethodReflection. trapReadprotected CtMethodReflection. trapStaticMethodprotected CtMethodReflection. trapWrite
-