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 java.lang.Object
implements MethodReflector

This class is responsible for reflecting methods.

Author:
jonasabreu

Constructor Summary
DefaultMethodReflector(ReflectionProvider provider, java.lang.String methodName, java.lang.Class<?> clazz)
           
 
Method Summary
 java.lang.reflect.Method withArgs(java.lang.Class<?>... classes)
          Use this method to reflect a method with classes as its argument types.
 java.lang.reflect.Method withoutArgs()
          This is a convenience method for 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,
                              java.lang.String methodName,
                              java.lang.Class<?> clazz)
Method Detail

withoutArgs

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

Specified by:
withoutArgs in interface MethodReflector

withArgs

public java.lang.reflect.Method withArgs(java.lang.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[])


Copyright © 2009 VidaGeek.net. All Rights Reserved.