net.vidageek.mirror.provider
Interface MethodReflectionProvider

All Superinterfaces:
ReflectionElementReflectionProvider
All Known Implementing Classes:
PureJavaMethodReflectionProvider, Sun15MethodReflectionProvider

public interface MethodReflectionProvider
extends ReflectionElementReflectionProvider

Interface that defines reflection operations related to methods

Author:
jonasabreu

Method Summary
 Class<?>[] getParameters()
          This method is used to reflect the wrapped method parameter array.
 Object invoke(Object[] args)
          This method is used to invoke the wrapped method using args as its arguments.
 
Methods inherited from interface net.vidageek.mirror.provider.ReflectionElementReflectionProvider
setAccessible
 

Method Detail

getParameters

Class<?>[] getParameters()
This method is used to reflect the wrapped method parameter array.

Returns:
An array of class objects representing the method parameters.
Throws:
ReflectionProviderException

invoke

Object invoke(Object[] args)
This method is used to invoke the wrapped method using args as its arguments.

Parameters:
args - Arguments to be passed to method.
Returns:
The value returned by the method or null if the method was void.
Throws:
ReflectionProviderException


Copyright © 2011 VidaGeek.net. All Rights Reserved.