|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.asm.ASMClassMethod
public abstract class ASMClassMethod
Representation of a method required by an enhanced class, for use by ASM.
| Field Summary | |
|---|---|
protected org.objectweb.asm.MethodVisitor |
visitor
Visitor for use in updating the method of the class (set in initialise). |
| Fields inherited from class org.datanucleus.enhancer.ClassMethod |
|---|
access, argNames, argTypes, enhancer, exceptions, LOCALISER, methodName, returnType |
| Constructor Summary | |
|---|---|
ASMClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
Constructor. |
|
ASMClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
Constructor. |
|
| Method Summary | |
|---|---|
protected ASMClassEnhancer |
getClassEnhancer()
Convenience accessor for the ASMClassEnhancer |
String |
getDescriptor()
Accessor for the descriptor of the method. |
void |
initialise()
Default implementation of initialise, specifying the method based on the ClassMethod info. |
void |
initialise(org.objectweb.asm.ClassVisitor classVisitor)
Method to initialise the class method. |
| Methods inherited from class org.datanucleus.enhancer.ClassMethod |
|---|
close, equals, execute, getAccess, getMethodAdditionMessage, getName, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.objectweb.asm.MethodVisitor visitor
| Constructor Detail |
|---|
public ASMClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
enhancer - Class Enhancername - method nameaccess - Access type for the methodreturnType - return typeargTypes - argment typesargNames - argment names
public ASMClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
enhancer - Class Enhancername - method nameaccess - Access type for the methodreturnType - return typeargTypes - argment typesargNames - argment namesexceptions - Exceptions that can be thrown| Method Detail |
|---|
protected ASMClassEnhancer getClassEnhancer()
public void initialise()
initialise in class ClassMethodpublic void initialise(org.objectweb.asm.ClassVisitor classVisitor)
classVisitor - Visitor for the classpublic String getDescriptor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||