ewe.reflect
Class MethodConstructor

java.lang.Object
  extended byewe.reflect.MethodConstructor
All Implemented Interfaces:
IMethod, Member
Direct Known Subclasses:
Constructor, Method

public class MethodConstructor
extends Object
implements IMethod

This class is a base class for Method and Constructor. It is not to be used directly.


Field Summary
protected  int _method_
           
protected  int _vclass_
           
protected  Class declaringClass
           
protected  String methodName
           
protected  String methodSpecs
           
protected  int modifiers
           
 Reflect reflect
           
 int wrapperType
           
 
Fields inherited from interface ewe.reflect.Member
DECLARED, PUBLIC
 
Method Summary
 Class getDeclaringClass()
           
 Class[] getExceptionTypes()
          Returns the exception types the method can throw.
 int getModifiers()
           
 String getName()
           
 String getParameters()
          This returns the parameter specs of the method including the enclosing brackets.
 Class[] getParameterTypes()
          Get a list of the parameters as Class objects.
 Class getReturnType()
          Get the return type of the method as a class.
 String getSpecs()
           
 String getType()
          Returns the java encoded type returned by the method/constructor.
 String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

_method_

protected int _method_

_vclass_

protected int _vclass_

wrapperType

public int wrapperType

methodSpecs

protected String methodSpecs

modifiers

protected int modifiers

declaringClass

protected Class declaringClass

reflect

public Reflect reflect

methodName

protected String methodName
Method Detail

getType

public String getType()
Returns the java encoded type returned by the method/constructor.

Specified by:
getType in interface Member

getReturnType

public Class getReturnType()
Get the return type of the method as a class.

Returns:
the return type of the method as a class, or null if it is a void method.

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface Member

getDeclaringClass

public Class getDeclaringClass()
Specified by:
getDeclaringClass in interface Member

getExceptionTypes

public Class[] getExceptionTypes()
Returns the exception types the method can throw.

Specified by:
getExceptionTypes in interface IMethod

getParameters

public String getParameters()
This returns the parameter specs of the method including the enclosing brackets.

Specified by:
getParameters in interface IMethod

getParameterTypes

public Class[] getParameterTypes()
Get a list of the parameters as Class objects.


getName

public String getName()
Specified by:
getName in interface Member

getSpecs

public String getSpecs()

toString

public String toString()
Description copied from class: Object
Return a String representation of this object.

Overrides:
toString in class Object
Returns:
a String representing this object.