Uses of Class
javassist.CtMethod

Packages that use CtMethod
javassist The Javassist Core API. 
javassist.expr This package contains the classes for modifying a method body. 
 

Uses of CtMethod in javassist
 

Methods in javassist that return CtMethod
static CtMethod CtNewMethod.make(java.lang.String src, CtClass declaring)
          Compiles the given source code and creates a method.
static CtMethod CtNewMethod.make(java.lang.String src, CtClass declaring, java.lang.String delegateObj, java.lang.String delegateMethod)
          Compiles the given source code and creates a method.
static CtMethod CtNewMethod.make(CtClass returnType, java.lang.String mname, CtClass[] parameters, CtClass[] exceptions, java.lang.String body, CtClass declaring)
          Creates a public method.
static CtMethod CtNewMethod.copy(CtMethod src, CtClass declaring, ClassMap map)
          Creates a copy of a method.
static CtMethod CtNewMethod.copy(CtMethod src, java.lang.String name, CtClass declaring, ClassMap map)
          Creates a copy of a method with a new name.
static CtMethod CtNewMethod.abstractMethod(CtClass returnType, java.lang.String mname, CtClass[] parameters, CtClass[] exceptions, CtClass declaring)
          Creates a public abstract method.
static CtMethod CtNewMethod.getter(java.lang.String methodName, CtField field)
          Creates a public getter method.
static CtMethod CtNewMethod.setter(java.lang.String methodName, CtField field)
          Creates a public setter method.
static CtMethod CtNewMethod.delegator(CtMethod delegate, CtClass declaring)
          Creates a method forwarding to a delegate in a super class.
static CtMethod CtNewMethod.wrapped(CtClass returnType, java.lang.String mname, CtClass[] parameterTypes, CtClass[] exceptionTypes, CtMethod body, CtMethod.ConstParameter constParam, CtClass declaring)
          Creates a wrapped method.
 CtMethod[] CtClass.getMethods()
          Returns an array containing CtMethod objects representing all the public methods of the class.
 CtMethod CtClass.getMethod(java.lang.String name, java.lang.String desc)
          Returns the method with the given name and signature.
 CtMethod[] CtClass.getDeclaredMethods()
          Gets all methods declared in the class.
 CtMethod CtClass.getDeclaredMethod(java.lang.String name, CtClass[] params)
          Retrieves the method with the specified name and parameter types among the methods declared in the class.
 CtMethod CtClass.getDeclaredMethod(java.lang.String name)
          Retrieves the method with the specified name among the methods declared in the class.
 CtMethod ClassPool.getMethod(java.lang.String classname, java.lang.String methodname)
          Reads a class file and obtains a compile-time method.
 

Methods in javassist with parameters of type CtMethod
static CtMethod CtNewMethod.copy(CtMethod src, CtClass declaring, ClassMap map)
          Creates a copy of a method.
static CtMethod CtNewMethod.copy(CtMethod src, java.lang.String name, CtClass declaring, ClassMap map)
          Creates a copy of a method with a new name.
static CtMethod CtNewMethod.delegator(CtMethod delegate, CtClass declaring)
          Creates a method forwarding to a delegate in a super class.
static CtMethod CtNewMethod.wrapped(CtClass returnType, java.lang.String mname, CtClass[] parameterTypes, CtClass[] exceptionTypes, CtMethod body, CtMethod.ConstParameter constParam, CtClass declaring)
          Creates a wrapped method.
static CtConstructor CtNewConstructor.make(CtClass[] parameters, CtClass[] exceptions, int howto, CtMethod body, CtMethod.ConstParameter cparam, CtClass declaring)
          Creates a public constructor.
 void CtMethod.setBody(CtMethod src, ClassMap map)
          Copies a method body from another method.
 void CtMethod.setWrappedBody(CtMethod mbody, CtMethod.ConstParameter constParam)
          Replace a method body with a new method body wrapping the given method.
 void CtClass.addMethod(CtMethod m)
          Adds a method.
 void CodeConverter.redirectMethodCall(CtMethod origMethod, CtMethod substMethod)
          Modify method invocations in a method body so that a different method is invoked.
 void CodeConverter.insertBeforeMethod(CtMethod origMethod, CtMethod beforeMethod)
          Insert a call to another method before an existing method call.
 void CodeConverter.insertAfterMethod(CtMethod origMethod, CtMethod afterMethod)
          Inserts a call to another method after an existing method call.
 

Constructors in javassist with parameters of type CtMethod
CtMethod(CtMethod src, CtClass declaring, ClassMap map)
          Creates a copy of a CtMethod object.
 

Uses of CtMethod in javassist.expr
 

Methods in javassist.expr that return CtMethod
 CtMethod MethodCall.getMethod()
          Returns the called method.
 



Javassist, a Java-bytecode translator toolkit. Copyright (C) 1999-2003 Shigeru Chiba. All Rights Reserved.