Package org.kohsuke.stapler
Class ForwardingFunction
java.lang.Object
org.kohsuke.stapler.Function
org.kohsuke.stapler.ForwardingFunction
Function
that forwards calls to another. Usually used
as a basis of decorator.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.stapler.Function
Function.InstanceFunction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontextualize
(Object usage) Caller uses this method to tellFunction
about how it is being used.<A extends Annotation>
AgetAnnotation
(Class<A> annotation) Class[]
Gets the type of checked exceptions.Returns theClass
object representing the class or interface that declares the executable represented by this object.Gets the human readable name of this function.Type[]
getName()
Gets the method name.Annotation[][]
Gets the annotations on parameters.String[]
Gets the list of parameter names.Class[]
Gets the type of parameters in a single array.Gets "className.methodName"Return type of the method.Gets the signature for this for use in listsinvoke
(StaplerRequest2 req, StaplerResponse2 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
invoke, returnNull
-
Field Details
-
next
-
-
Constructor Details
-
ForwardingFunction
-
-
Method Details
-
getName
Description copied from class:Function
Gets the method name. -
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
Description copied from class:Function
Gets "className.methodName"- Specified by:
getQualifiedName
in classFunction
-
getParameterTypes
Description copied from class:Function
Gets the type of parameters in a single array.- Specified by:
getParameterTypes
in classFunction
-
getReturnType
Description copied from class:Function
Return type of the method.- Specified by:
getReturnType
in classFunction
-
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
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:
-
contextualize
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
- Specified by:
getGenericParameterTypes
in classFunction
-
getSignature
Description copied from class:Function
Gets the signature for this for use in lists- Specified by:
getSignature
in classFunction
-
getParameterAnnotations
Description copied from class:Function
Gets the annotations on parameters.- Specified by:
getParameterAnnotations
in classFunction
-
getParameterNames
Description copied from class:Function
Gets the list of parameter names.- Specified by:
getParameterNames
in classFunction
-
invoke
public Object invoke(StaplerRequest2 req, StaplerResponse2 rsp, Object o, Object... args) throws IllegalAccessException, InvocationTargetException, jakarta.servlet.ServletException Description copied from class:Function
Invokes the method.- Overrides:
invoke
in classFunction
- Throws:
IllegalAccessException
InvocationTargetException
jakarta.servlet.ServletException
-
getAnnotation
- Specified by:
getAnnotation
in classFunction
-
getAnnotations
- Specified by:
getAnnotations
in classFunction
-