|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.enhancer.ClassMethod
public abstract class ClassMethod
Representation of a method that an enhanced class requires.
| Field Summary | |
|---|---|
protected int |
access
Access flags for the method (public, protected etc). |
protected String[] |
argNames
Names of the arguments. |
protected Object[] |
argTypes
Types of the arguments. |
protected ClassEnhancer |
enhancer
The parent enhancer. |
protected String[] |
exceptions
Exceptions that can be thrown. |
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation of messages |
protected String |
methodName
Name of the method. |
protected Object |
returnType
Return type for the method |
| Constructor Summary | |
|---|---|
ClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
Constructor. |
|
ClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Method to close the definition of the class method. |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
abstract void |
execute()
Method to add the contents of the class method. |
int |
getAccess()
Accessor for the access |
static String |
getMethodAdditionMessage(String methodName,
Object returnType,
Object[] argTypes,
String[] argNames)
Convenience method to generate a message that a method has been added. |
String |
getName()
Accessor for the method name |
int |
hashCode()
Return hash code of this instance. |
abstract void |
initialise()
Method to initialise the class method. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
protected ClassEnhancer enhancer
protected String methodName
protected int access
protected Object returnType
protected Object[] argTypes
protected String[] argNames
protected String[] exceptions
| Constructor Detail |
|---|
public ClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames)
enhancer - ClassEnhancername - Name of the methodaccess - Access for the method (PUBLIC, PROTECTED etc)returnType - Return typeargTypes - Argument type(s)argNames - Argument name(s)
public ClassMethod(ClassEnhancer enhancer,
String name,
int access,
Object returnType,
Object[] argTypes,
String[] argNames,
String[] exceptions)
enhancer - ClassEnhancername - Name of the methodaccess - Access for the method (PUBLIC, PROTECTED etc)returnType - Return typeargTypes - Argument type(s)argNames - Argument name(s)exceptions - Exceptions that can be thrown| Method Detail |
|---|
public String getName()
public int getAccess()
public abstract void initialise()
public abstract void execute()
public void close()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
public static String getMethodAdditionMessage(String methodName,
Object returnType,
Object[] argTypes,
String[] argNames)
methodName - Name of the methodreturnType - Return type of the methodargTypes - arg types for the methodargNames - arg names for the method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||