ch.elca.el4j.util.interfaceenrichment
Class MethodDescriptor

java.lang.Object
  extended by ch.elca.el4j.util.interfaceenrichment.MethodDescriptor

public class MethodDescriptor
extends Object

Class to describe a method. This is used to decorate methods.

Author:
Martin Zeltner (MZE)
File-location:
MethodDescriptor
Last check-in date:
2009-08-04 15:22:05 +0200 (Di, 04. Aug 2009) by swismer for revision 3881

Field Summary
protected  String m_methodName
          Name of the method.
protected  String[] m_parameterNames
          Parameter names.
protected  Class<?>[] m_parameterTypes
          Parameter types.
protected  Class<?> m_returnType
          The return type of this method.
protected  Class<?>[] m_thrownExceptions
          Exceptions which this method can throw.
 
Constructor Summary
MethodDescriptor()
           
 
Method Summary
 String getMethodName()
           
 String[] getParameterNames()
          This may not be the real names (e.g. when we use reflection)
 Class<?>[] getParameterTypes()
           
 Class<?> getReturnType()
           
 Class<?>[] getThrownExceptions()
           
 void setMethodName(String name)
           
 void setParameterNames(String[] names)
          This may not be the real names (e.g. when we use reflection)
 void setParameterTypes(Class<?>[] types)
           
 void setReturnType(Class<?> type)
           
 void setThrownExceptions(Class<?>[] exceptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_methodName

protected String m_methodName
Name of the method.


m_parameterNames

protected String[] m_parameterNames
Parameter names.


m_parameterTypes

protected Class<?>[] m_parameterTypes
Parameter types.


m_thrownExceptions

protected Class<?>[] m_thrownExceptions
Exceptions which this method can throw.


m_returnType

protected Class<?> m_returnType
The return type of this method.

Constructor Detail

MethodDescriptor

public MethodDescriptor()
Method Detail

getMethodName

public String getMethodName()
Returns:
Returns the m_methodName.

setMethodName

public void setMethodName(String name)
Parameters:
name - The m_methodName to set.

getParameterTypes

public Class<?>[] getParameterTypes()
Returns:
Returns the m_parameterTypes.

setParameterTypes

public void setParameterTypes(Class<?>[] types)
Parameters:
types - The m_parameterTypes to set.

getReturnType

public Class<?> getReturnType()
Returns:
Returns the m_returnType.

setReturnType

public void setReturnType(Class<?> type)
Parameters:
type - The m_returnType to set.

getThrownExceptions

public Class<?>[] getThrownExceptions()
Returns:
Returns the m_thrownExceptions.

setThrownExceptions

public void setThrownExceptions(Class<?>[] exceptions)
Parameters:
exceptions - The m_thrownExceptions to set.

getParameterNames

public String[] getParameterNames()
This may not be the real names (e.g. when we use reflection)

Returns:
Returns the m_parameterNames.

setParameterNames

public void setParameterNames(String[] names)
This may not be the real names (e.g. when we use reflection)

Parameters:
names - The m_parameterNames to set.


Copyright © 2005-2011 ELCA. All Rights Reserved.