Package org.kohsuke.stapler.lang.util
Class MethodRefFilter
- java.lang.Object
-
- org.kohsuke.stapler.lang.AnnotatedRef
-
- org.kohsuke.stapler.lang.MethodRef
-
- org.kohsuke.stapler.lang.util.MethodRefFilter
-
-
Constructor Summary
Constructors Constructor Description MethodRefFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> type)
protected abstract MethodRef
getBase()
String
getName()
Retrieves the referenced method name.boolean
hasAnnotation(Class<? extends Annotation> type)
Object
invoke(Object _this, Object... args)
boolean
isRoutable()
Returns true if this method is a 'public' method that should be used for routing requests.static MethodRef
wrap(Method m)
-
-
-
Method Detail
-
getBase
protected abstract MethodRef getBase()
-
isRoutable
public boolean isRoutable()
Description copied from class:MethodRef
Returns true if this method is a 'public' method that should be used for routing requests.- Overrides:
isRoutable
in classMethodRef
-
getName
public String getName()
Description copied from class:MethodRef
Retrieves the referenced method name. Some implementations (e.g. Ruby) cannot guarantee availability of names for all cases, so sometimes the name may be missing.
-
invoke
public Object invoke(Object _this, Object... args) throws InvocationTargetException, IllegalAccessException
- Specified by:
invoke
in classMethodRef
- Throws:
InvocationTargetException
IllegalAccessException
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> type)
- Specified by:
getAnnotation
in classAnnotatedRef
-
hasAnnotation
public boolean hasAnnotation(Class<? extends Annotation> type)
- Overrides:
hasAnnotation
in classAnnotatedRef
-
-