info.javelot.functionalj.reflect.element
Interface ReflectElement

All Known Implementing Classes:
ReflectCglibConstructor, ReflectCglibInstanceMethod, ReflectCglibStaticMethod, ReflectInstanceMethod, ReflectJdkConstructor, ReflectJdkInstanceMethod, ReflectJdkStaticMethod

public interface ReflectElement

Interface that represents a reflect element, such as a constructor or method.

Author:
Copyright © 2006 Frederic Daoud

Method Summary
 String getName()
          Returns the name of the reflect element.
 Class[] getParameterTypes()
          Returns the types of the parameters to the reflect element.
 Object invoke(Object[] p_params)
          Invokes the reflect element.
 

Method Detail

getName

String getName()
Returns the name of the reflect element. For a constructor, this is the name of the class. For a method, this is the name of the class and the name of the method.


getParameterTypes

Class[] getParameterTypes()
Returns the types of the parameters to the reflect element.

Returns:
the types of the parameters to the reflect element.

invoke

Object invoke(Object[] p_params)
              throws Exception
Invokes the reflect element.

Parameters:
p_params - the parameters to the element.
Returns:
the result of invoking the element.
Throws:
Exception - thrown if an exception is thrown when invoking the element.