Package | Description |
---|---|
org.cojen.classfile | |
org.cojen.classfile.attribute |
Modifier and Type | Method and Description |
---|---|
MethodInfo |
ClassFile.addConstructor(Modifiers modifiers,
TypeDesc[] params)
Add a constructor to this class.
|
MethodInfo |
ClassFile.addDefaultConstructor()
Adds a public, no-arg constructor with the code buffer properly defined.
|
MethodInfo |
ClassFile.addInitializer()
Add a static initializer to this class.
|
MethodInfo |
ClassFile.addMethod(Method method)
Add a method to this class.
|
MethodInfo |
ClassFile.addMethod(Modifiers modifiers,
String methodName,
MethodDesc md)
Add a method to this class.
|
MethodInfo |
ClassFile.addMethod(Modifiers modifiers,
String methodName,
TypeDesc ret,
TypeDesc[] params)
Add a method to this class.
|
MethodInfo |
ClassFile.addMethod(String declaration)
Add a method to this class by declaration.
|
MethodInfo[] |
ClassFile.getConstructors()
Returns all the constructors defined in this class.
|
MethodInfo |
ClassFile.getInitializer()
Returns the static initializer defined in this class or null if there
isn't one.
|
MethodInfo[] |
ClassFile.getMethods()
Returns all the methods defined in this class, not including
constructors and static initializers.
|
Constructor and Description |
---|
CodeBuilder(MethodInfo info)
Construct a CodeBuilder for the CodeAttr of the given MethodInfo.
|
CodeBuilder(MethodInfo info,
boolean saveLineNumberInfo,
boolean saveLocalVariableInfo)
Construct a CodeBuilder for the CodeAttr of the given MethodInfo.
|
CodeDisassembler(MethodInfo method) |
NullCodeAssembler(MethodInfo mi) |
Modifier and Type | Method and Description |
---|---|
void |
StackMapTableAttr.setInitialFrame(MethodInfo method) |
void |
CodeAttr.setInitialStackMapFrame(MethodInfo method) |
Copyright © 2004-2015 Cojen. All Rights Reserved.