|
||||||||||
| 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 java.lang.String[] |
argNames
Names of the arguments. |
protected java.lang.Object[] |
argTypes
Types of the arguments. |
protected ClassEnhancer |
enhancer
The parent enhancer. |
protected java.lang.String[] |
exceptions
Exceptions that can be thrown. |
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation of messages |
protected java.lang.String |
methodName
Name of the method. |
protected java.lang.Object |
returnType
Return type for the method |
| Constructor Summary | |
|---|---|
ClassMethod(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames)
Constructor. |
|
ClassMethod(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames,
java.lang.String[] exceptions)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Method to close the definition of the class method. |
boolean |
equals(java.lang.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 java.lang.String |
getMethodAdditionMessage(java.lang.String methodName,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames)
Convenience method to generate a message that a method has been added. |
java.lang.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 org.datanucleus.util.Localiser LOCALISER
protected ClassEnhancer enhancer
protected java.lang.String methodName
protected int access
protected java.lang.Object returnType
protected java.lang.Object[] argTypes
protected java.lang.String[] argNames
protected java.lang.String[] exceptions
| Constructor Detail |
|---|
public ClassMethod(ClassEnhancer enhancer,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.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,
java.lang.String name,
int access,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.String[] argNames,
java.lang.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 java.lang.String getName()
public int getAccess()
public abstract void initialise()
public abstract void execute()
public void close()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
public static java.lang.String getMethodAdditionMessage(java.lang.String methodName,
java.lang.Object returnType,
java.lang.Object[] argTypes,
java.lang.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 | |||||||||