net.vidageek.mirror.reflect
Class DefaultMethodReflector

java.lang.Object
  extended by net.vidageek.mirror.reflect.DefaultMethodReflector
All Implemented Interfaces:
MethodReflector

public final class DefaultMethodReflector
extends Object
implements MethodReflector

This class is responsible for reflecting methods.

Author:
jonasabreu

Constructor Summary
DefaultMethodReflector(ReflectionProvider provider, String methodName, Class<?> clazz)
           
 
Method Summary
 Method withAnyArgs()
          Use this method to reflect a uniquely named method.
 Method withArgs(Class<?>... classes)
          Use this method to reflect a method with classes as its argument types.
 Method withoutArgs()
          This is a convenience method for MethodReflector.withArgs(Class...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMethodReflector

public DefaultMethodReflector(ReflectionProvider provider,
                              String methodName,
                              Class<?> clazz)
Method Detail

withoutArgs

public Method withoutArgs()
Description copied from interface: MethodReflector
This is a convenience method for MethodReflector.withArgs(Class...)

Specified by:
withoutArgs in interface MethodReflector

withArgs

public Method withArgs(Class<?>... classes)
Description copied from interface: MethodReflector
Use this method to reflect a method with classes as its argument types.

Specified by:
withArgs in interface MethodReflector
Parameters:
classes - argument types of the method to be reflected.
Returns:
A method matching classes as argument types.
See Also:
ClassReflectionProvider.reflectMethod(String, Class[])

withAnyArgs

public Method withAnyArgs()
Description copied from interface: MethodReflector
Use this method to reflect a uniquely named method.

Specified by:
withAnyArgs in interface MethodReflector
Returns:
A method uniquely named or null if no method was found.


Copyright © 2011 VidaGeek.net. All Rights Reserved.