Package org.kohsuke.stapler.lang
Class MethodRef
- java.lang.Object
-
- org.kohsuke.stapler.lang.AnnotatedRef
-
- org.kohsuke.stapler.lang.MethodRef
-
- Direct Known Subclasses:
MethodRefFilter
public abstract class MethodRef extends AnnotatedRef
- Since:
- 1.220
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description MethodRef()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getName()
Retrieves the referenced method name.abstract 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)
-
Methods inherited from class org.kohsuke.stapler.lang.AnnotatedRef
getAnnotation, hasAnnotation
-
-
-
-
Method Detail
-
isRoutable
public boolean isRoutable()
Returns true if this method is a 'public' method that should be used for routing requests.
-
getName
@CheckForNull public String getName()
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.- Returns:
- Method name.
null
if it cannot be determined. - Since:
- 1.248
-
invoke
public abstract Object invoke(Object _this, Object... args) throws InvocationTargetException, IllegalAccessException
-
-