|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.enhancer.ClassMethod
org.jpox.enhancer.bcel.BCELClassMethod
public abstract class BCELClassMethod
Representation of a method required by an enhanced class, for use by BCEL.
| Field Summary | |
|---|---|
protected org.apache.bcel.generic.ClassGen |
classGen
target ClassGen instance |
protected java.lang.String |
className
target class name |
protected BCELClassMetaData |
cmd
ClassMetaData for the class |
protected org.apache.bcel.generic.ConstantPoolGen |
constantPoolGen
target ConstantPoolGen instance |
protected org.apache.bcel.generic.InstructionFactory |
factory
InstructionFactory instance |
protected org.apache.bcel.generic.InstructionList |
il
InstructionList instance |
protected static org.jpox.util.Localiser |
LOCALISER
Localisation of messages |
protected org.apache.bcel.generic.MethodGen |
methodGen
MethodGen instance |
protected boolean |
synthetic
is synthetic |
| Fields inherited from class org.jpox.enhancer.ClassMethod |
|---|
access, argNames, argTypes, enhancer, exceptions, methodName, returnType |
| Constructor Summary | |
|---|---|
BCELClassMethod(java.lang.String methodName,
int permissions,
org.apache.bcel.generic.Type returnType,
org.apache.bcel.generic.Type[] argTypes,
java.lang.String[] argNames,
boolean synthetic,
BCELClassEnhancer enhancer)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Method to close the definition of the class method |
protected org.apache.bcel.generic.InstructionHandle |
createThrowException(java.lang.String newException,
java.lang.String message)
Helper method to create a throw exception instruction. |
protected org.apache.bcel.generic.InstructionHandle |
createThrowException(java.lang.String newException,
java.lang.String message,
org.apache.bcel.generic.Instruction intMessage)
Helper method to create a throw exception instruction. |
void |
execute()
Method to add the contents of the class method. |
protected BCELClassEnhancer |
getClassEnhancer()
Convenience accessor for the BCELClassEnhancer |
void |
initialise()
Method to initialise the class method. |
| Methods inherited from class org.jpox.enhancer.ClassMethod |
|---|
equals, getAccess, getMethodAdditionMessage, getName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.jpox.util.Localiser LOCALISER
protected org.apache.bcel.generic.InstructionFactory factory
protected org.apache.bcel.generic.InstructionList il
protected org.apache.bcel.generic.MethodGen methodGen
protected boolean synthetic
protected org.apache.bcel.generic.ClassGen classGen
protected java.lang.String className
protected org.apache.bcel.generic.ConstantPoolGen constantPoolGen
protected BCELClassMetaData cmd
| Constructor Detail |
|---|
public BCELClassMethod(java.lang.String methodName,
int permissions,
org.apache.bcel.generic.Type returnType,
org.apache.bcel.generic.Type[] argTypes,
java.lang.String[] argNames,
boolean synthetic,
BCELClassEnhancer enhancer)
methodName - method namepermissions - bcel method typereturnType - return typeargTypes - argment typesargNames - argment namessynthetic - synthetic methodenhancer - Class Enhancer| Method Detail |
|---|
protected BCELClassEnhancer getClassEnhancer()
public void initialise()
initialise in class ClassMethodpublic void execute()
execute in class ClassMethodpublic void close()
close in class ClassMethod
protected org.apache.bcel.generic.InstructionHandle createThrowException(java.lang.String newException,
java.lang.String message,
org.apache.bcel.generic.Instruction intMessage)
throw new [newExceptin param class]([message param]+[intMessage param]);
newException - throw exceptionmessage - exception messageintMessage - exception message append ,like ICONST_2 or ILOAD_1
protected org.apache.bcel.generic.InstructionHandle createThrowException(java.lang.String newException,
java.lang.String message)
throw new [newExceptin param class]([message param]);
newException - throw exceptionmessage - exception message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||