Package org.kohsuke.stapler
Class ForwardingFunction
- java.lang.Object
-
- org.kohsuke.stapler.Function
-
- org.kohsuke.stapler.ForwardingFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kohsuke.stapler.Function
Function.InstanceFunction
-
-
Constructor Summary
Constructors Constructor Description ForwardingFunction(Function next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function
contextualize(Object usage)
Caller uses this method to tellFunction
about how it is being used.<A extends Annotation>
AgetAnnotation(Class<A> annotation)
Annotation[]
getAnnotations()
Class[]
getCheckedExceptionTypes()
Gets the type of checked exceptions.Class
getDeclaringClass()
Returns theClass
object representing the class or interface that declares the executable represented by this object.String
getDisplayName()
Gets the human readable name of this function.Type[]
getGenericParameterTypes()
String
getName()
Gets the method name.Annotation[][]
getParameterAnnotations()
Gets the annotations on parameters.String[]
getParameterNames()
Gets the list of parameter names.Class[]
getParameterTypes()
Gets the type of parameters in a single array.String
getQualifiedName()
Gets "className.methodName"Class
getReturnType()
Return type of the method.String
getSignature()
Gets the signature for this for use in listsObject
invoke(StaplerRequest req, StaplerResponse rsp, Object o, Object... args)
Invokes the method.boolean
isStatic()
Returns true if and only if the function is static.-
Methods inherited from class org.kohsuke.stapler.Function
returnNull
-
-
-
-
Field Detail
-
next
protected final Function next
-
-
Constructor Detail
-
ForwardingFunction
public ForwardingFunction(Function next)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Description copied from class:Function
Gets the human readable name of this function. Used to assist debugging.- Specified by:
getDisplayName
in classFunction
-
isStatic
public boolean isStatic()
Description copied from class:Function
Returns true if and only if the function is static.
-
getQualifiedName
public String getQualifiedName()
Description copied from class:Function
Gets "className.methodName"- Specified by:
getQualifiedName
in classFunction
-
getParameterTypes
public Class[] getParameterTypes()
Description copied from class:Function
Gets the type of parameters in a single array.- Specified by:
getParameterTypes
in classFunction
-
getReturnType
public Class getReturnType()
Description copied from class:Function
Return type of the method.- Specified by:
getReturnType
in classFunction
-
getCheckedExceptionTypes
public Class[] getCheckedExceptionTypes()
Description copied from class:Function
Gets the type of checked exceptions.Take care that
RuntimeException
can be checked but it's not mandatory- Specified by:
getCheckedExceptionTypes
in classFunction
-
getDeclaringClass
public Class getDeclaringClass()
Description copied from class:Function
Returns theClass
object representing the class or interface that declares the executable represented by this object.- Specified by:
getDeclaringClass
in classFunction
- See Also:
Member.getDeclaringClass()
-
contextualize
public Function contextualize(Object usage)
Description copied from class:Function
Caller uses this method to tellFunction
about how it is being used. By default, this methods ignores the given context by returningthis
.- Overrides:
contextualize
in classFunction
-
getGenericParameterTypes
public Type[] getGenericParameterTypes()
- Specified by:
getGenericParameterTypes
in classFunction
-
getSignature
public String getSignature()
Description copied from class:Function
Gets the signature for this for use in lists- Specified by:
getSignature
in classFunction
-
getParameterAnnotations
public Annotation[][] getParameterAnnotations()
Description copied from class:Function
Gets the annotations on parameters.- Specified by:
getParameterAnnotations
in classFunction
-
getParameterNames
public String[] getParameterNames()
Description copied from class:Function
Gets the list of parameter names.- Specified by:
getParameterNames
in classFunction
-
invoke
public Object invoke(StaplerRequest req, StaplerResponse rsp, Object o, Object... args) throws IllegalAccessException, InvocationTargetException, javax.servlet.ServletException
Description copied from class:Function
Invokes the method.- Specified by:
invoke
in classFunction
- Throws:
IllegalAccessException
InvocationTargetException
javax.servlet.ServletException
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotation)
- Specified by:
getAnnotation
in classFunction
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotations
in classFunction
-
-