| Package | Description |
|---|---|
| xapi.bytecode |
| Modifier and Type | Method and Description |
|---|---|
ClassPath |
ClassPool.appendClassPath(String pathname)
Appends a directory or a jar (or zip) file to the end of the
search path.
|
void |
ClassPool.appendPathList(String pathlist)
Appends directories and jar files for search.
|
static MemberValue |
Annotation.createMemberValue(ConstPool cp,
CtClass type)
Makes an instance of
MemberValue. |
CtClass |
ClassPool.get(String classname)
Reads a class file from the source and returns a reference
to the
CtClass
object representing that class file. |
CtClass[] |
ClassPool.get(String[] classnames)
Reads class files from the source and returns an array of
CtClass
objects representing those class files. |
protected CtClass |
ClassPool.get0(String classname,
boolean useCache) |
CtClass |
ClassPool.getAndRename(String orgName,
String newName)
Reads a class file and constructs a
CtClass
object with a new name. |
CtClass |
CtClass.getComponentType()
If this object represents an array, this method returns the component
type of the array.
|
CtClass |
ClassPool.getCtClass(String classname)
Returns a
CtClass object with the given name. |
CtMethod |
CtClass.getDeclaredMethod(String name)
Retrieves the method with the specified name among the methods
declared in the class.
|
CtMethod |
CtClass.getDeclaredMethod(String name,
CtClass[] params)
Retrieves the method with the specified name and parameter types
among the methods declared in the class.
|
CtClass |
CtClass.getDeclaringClass()
If this class is a member class or interface of another class,
then the class enclosing this class is returned.
|
CtClass[] |
CtClass.getInterfaces()
Obtains the class objects representing the interfaces implemented
by the class or, if this object represents an interface, the interfaces
extended by that interface.
|
CtMethod |
CtClass.getMethod(String name,
String desc)
Returns the method with the given name and signature.
|
CtClass[] |
CtClass.getNestedClasses()
Returns an array of nested classes declared in the class.
|
CtClass[] |
CtBehavior.getParameterTypes()
Obtains parameter types of this method/constructor.
|
static CtClass[] |
Descriptor.getParameterTypes(String desc,
ClassPool cp)
Returns the
CtClass objects representing the parameter
types specified by the given descriptor. |
CtClass |
CtMethod.getReturnType()
Obtains the type of the returned value.
|
static CtClass |
Descriptor.getReturnType(String desc,
ClassPool cp)
Returns the
CtClass object representing the return
type specified by the given descriptor. |
CtClass |
CtClass.getSuperclass()
Obtains the class object representing the superclass of the
class.
|
CtClass |
CtField.getType()
Returns the type of the field.
|
URL |
CtClass.getURL()
Returns the uniform resource locator (URL) of the class file.
|
ClassPath |
ClassPool.insertClassPath(String pathname)
Inserts a directory or a jar (or zip) file at the head of the
search path.
|
InputStream |
ClassPath.openClassfile(String classname)
Opens a class file.
|
boolean |
CtClass.subtypeOf(CtClass clazz)
Returns
true if this class extends or implements
clazz. |
static CtClass |
Descriptor.toCtClass(String desc,
ClassPool cp)
Returns a
CtClass object representing the type
specified by the given descriptor. |
| Constructor and Description |
|---|
CannotCompileException(NotFoundException e)
Constructs a CannotCompileException with a
NotFoundException. |
| Constructor and Description |
|---|
Annotation(ConstPool cp,
CtClass clazz)
Constructs an annotation that can be accessed through the interface
represented by
clazz. |
Copyright © 2012-2013 The Internet Party. All Rights Reserved.