| Package | Description |
|---|---|
| xapi.bytecode | |
| xapi.bytecode.impl |
| Modifier and Type | Method and Description |
|---|---|
CtMethod |
CtClassType.getDeclaredMethod(String name) |
CtMethod |
CtClass.getDeclaredMethod(String name)
Retrieves the method with the specified name among the methods
declared in the class.
|
CtMethod |
CtClassType.getDeclaredMethod(String name,
CtClass[] params) |
CtMethod |
CtClass.getDeclaredMethod(String name,
CtClass[] params)
Retrieves the method with the specified name and parameter types
among the methods declared in the class.
|
CtMethod[] |
CtClassType.getDeclaredMethods() |
CtMethod[] |
CtClass.getDeclaredMethods()
Gets all methods declared in the class.
|
CtMethod |
CtClass.getEnclosingMethod()
Returns the immediately enclosing method of this class.
|
CtMethod |
CtClassType.getMethod(String name,
String desc) |
CtMethod |
CtClass.getMethod(String name,
String desc)
Returns the method with the given name and signature.
|
CtMethod[] |
CtClassType.getMethods() |
CtMethod[] |
CtClass.getMethods()
Returns an array containing
CtMethod objects
representing all the non-private methods of the class. |
static CtMethod |
CtMethod.make(MethodInfo minfo,
CtClass declaring)
Creates a method from a
MethodInfo object. |
CtMethod |
CtConstructor.toMethod(String name,
CtClass declaring)
Makes a copy of this constructor and converts it into a method.
|
CtMethod |
CtConstructor.toMethod(String name,
CtClass declaring,
ClassMap map)
Makes a copy of this constructor and converts it into a method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CtClassType.addMethod(CtMethod m) |
void |
CtClass.addMethod(CtMethod m)
Adds a method.
|
void |
CtClassType.removeMethod(CtMethod m) |
void |
CtClass.removeMethod(CtMethod m)
Removes a method declared in this class.
|
| Modifier and Type | Method and Description |
|---|---|
IsMethod |
BytecodeAdapterService.toMethod(CtMethod type) |
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.