dynclass
Class MethodDefinition
java.lang.Object
|
+--dynclass.MethodDefinition
- public final class MethodDefinition
- extends Object
Instances of this class provide enough information to declare
a method. Identifying information is accessed via the
MethodDescription property of this class.
Constructor Summary |
MethodDefinition(Method source)
Create a MethodDefinition whose name, parameter type list,
exception list and return type are taken from the given
Method. |
MethodDefinition(String name,
Class rtype,
Class[] params)
Create a MethodDefinition with the given name, parameter type list,
and return type, and an empty exception list. |
MethodDefinition(String name,
Class rtype,
Class[] params,
Class[] exceptions)
Create a MethodDefinition with the given name, parameter type list,
and return type, and exception list. |
MethodDefinition
public MethodDefinition(Method source)
- Create a MethodDefinition whose name, parameter type list,
exception list and return type are taken from the given
Method.
MethodDefinition
public MethodDefinition(String name,
Class rtype,
Class[] params)
- Create a MethodDefinition with the given name, parameter type list,
and return type, and an empty exception list.
- Parameters:
params
- the parameter type list. null and 0-length arrays
are equivalent.
MethodDefinition
public MethodDefinition(String name,
Class rtype,
Class[] params,
Class[] exceptions)
- Create a MethodDefinition with the given name, parameter type list,
and return type, and exception list.
- Parameters:
params
- the parameter type list. null and 0-length arrays
are equivalent.exceptions
- the declared exceptions. null and 0-length arrays
are equivalent.
getDescription
public MethodDescription getDescription()
getReturnType
public Class getReturnType()
getExceptionTypes
public Class[] getExceptionTypes()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object