|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.enhancer.method.ClassElementBuilder
org.jpox.enhancer.method.MethodBuilder
method generator class.
Field Summary | |
protected java.lang.String[] |
argName
Method argment names |
protected org.apache.bcel.generic.Type[] |
argType
Method argment types |
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
Mesasge resource |
protected org.apache.bcel.generic.MethodGen |
methodGen
MethodGen instance |
protected java.lang.String |
methodName
Method name |
protected org.apache.bcel.generic.Type |
resultType
method result type |
protected boolean |
synthetic
is synthetic |
protected int |
type
Method type. |
Fields inherited from class org.jpox.enhancer.method.ClassElementBuilder |
classConfig, classGen, className, constantPoolGen, gen, jdoConfig, packageConfig |
Constructor Summary | |
MethodBuilder(java.lang.String methodName,
int type,
org.apache.bcel.generic.Type resultType,
org.apache.bcel.generic.Type[] argType,
java.lang.String[] argName,
boolean synthetic,
GeneratorBase gen)
Constructor. |
Method Summary | |
void |
close()
Call after execute() method. |
protected org.apache.bcel.generic.InstructionHandle |
createThrowException(java.lang.String newException,
java.lang.String message)
Create throw exception instruction. |
protected org.apache.bcel.generic.InstructionHandle |
createThrowException(java.lang.String newException,
java.lang.String message,
org.apache.bcel.generic.Instruction intMessage)
Create throw exception instruction. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
void |
execute()
ClassElementBuilder routine |
int |
hashCode()
Return hash code of this instance. |
void |
init()
Instance initializer. |
boolean |
isSynthetic()
return true if this method is synthetic |
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 java.lang.String methodName
protected int type
protected org.apache.bcel.generic.Type resultType
protected org.apache.bcel.generic.Type[] argType
protected java.lang.String[] argName
protected org.apache.bcel.generic.InstructionFactory factory
protected org.apache.bcel.generic.InstructionList il
protected org.apache.bcel.generic.MethodGen methodGen
protected boolean synthetic
Constructor Detail |
public MethodBuilder(java.lang.String methodName, int type, org.apache.bcel.generic.Type resultType, org.apache.bcel.generic.Type[] argType, java.lang.String[] argName, boolean synthetic, GeneratorBase gen)
methodName
- method nametype
- bcel method typeresultType
- return typeargType
- argment typesargName
- argment namessynthetic
- synthetic methodgen
- Generator baseMethod Detail |
public int hashCode()
public boolean equals(java.lang.Object o)
o
- the reference object with which to compare.
public void init()
ClassElementBuilder
init
in class ClassElementBuilder
public void execute()
ClassElementBuilder
execute
in class ClassElementBuilder
public void close()
ClassElementBuilder
close
in class ClassElementBuilder
public boolean isSynthetic()
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 |