| Package | Description |
|---|---|
| xapi.bytecode | |
| xapi.bytecode.attributes |
| Modifier and Type | Method and Description |
|---|---|
void |
CtClassType.addConstructor(CtConstructor c) |
void |
CtClass.addConstructor(CtConstructor c)
Adds a constructor.
|
void |
CtBehavior.addLocalVariable(String name,
CtClass type)
Declares a new local variable.
|
void |
CtClassType.addMethod(CtMethod m) |
void |
CtClass.addMethod(CtMethod m)
Adds a method.
|
void |
CtBehavior.addParameter(CtClass type)
Appends a new parameter, which becomes the last parameter.
|
boolean |
CtConstructor.callsSuper()
Returns true if this constructor calls a constructor
of the super class.
|
static CtConstructor |
CtNewConstructor.copy(CtConstructor c,
CtClass declaring,
ClassMap map)
Creates a copy of a constructor.
|
static CtConstructor |
CtNewConstructor.defaultConstructor(CtClass declaring)
Creates a default (public) constructor.
|
void |
CtBehavior.insertParameter(CtClass type)
Inserts a new parameter, which becomes the first parameter.
|
static CtConstructor |
CtNewConstructor.make(CtClass[] parameters,
CtClass[] exceptions,
String body,
CtClass declaring)
Creates a public constructor.
|
static CtMethod |
CtMethod.make(MethodInfo minfo,
CtClass declaring)
Creates a method from a
MethodInfo object. |
CtConstructor |
CtClass.makeClassInitializer()
Makes an empty class initializer (static constructor).
|
void |
CtConstructor.setBody(CtConstructor src,
ClassMap map)
Copies a constructor body from another constructor.
|
void |
CtConstructor.setBody(String src)
Sets a constructor body.
|
void |
CtClass.setSuperclass(CtClass clazz)
Changes a super class unless this object represents an interface.
|
byte[] |
CtClass.toBytecode()
Converts this class to a class file.
|
void |
CtClass.toBytecode(DataOutputStream out)
Converts this class to a class file.
|
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.
|
void |
CtClass.writeFile()
Writes a class file represented by this
CtClass
object in the current directory. |
void |
CtClass.writeFile(String directoryName)
Writes a class file represented by this
CtClass
object on a local disk. |
| Constructor and Description |
|---|
CtConstructor(CtConstructor src,
CtClass declaring,
ClassMap map)
Creates a copy of a
CtConstructor object. |
CtField(CtClass type,
String name,
CtClass declaring)
Creates a
CtField object. |
CtField(CtField src,
CtClass declaring)
Creates a copy of the given field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StackMapTable.removeNew(int where)
Undocumented method.
|
void |
StackMap.removeNew(int where)
Undocumented method.
|
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.