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 tellFunctionabout how it is being used.<A extends Annotation>
AgetAnnotation(Class<A> annotation) Class[]Gets the type of checked exceptions.Returns theClassobject 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.booleanisStatic()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:FunctionGets the method name. -
getDisplayName
Description copied from class:FunctionGets the human readable name of this function. Used to assist debugging.- Specified by:
getDisplayNamein classFunction
-
isStatic
public boolean isStatic()Description copied from class:FunctionReturns true if and only if the function is static. -
getQualifiedName
Description copied from class:FunctionGets "className.methodName"- Specified by:
getQualifiedNamein classFunction
-
getParameterTypes
Description copied from class:FunctionGets the type of parameters in a single array.- Specified by:
getParameterTypesin classFunction
-
getReturnType
Description copied from class:FunctionReturn type of the method.- Specified by:
getReturnTypein classFunction
-
getCheckedExceptionTypes
Description copied from class:FunctionGets the type of checked exceptions.Take care that
RuntimeExceptioncan be checked but it's not mandatory- Specified by:
getCheckedExceptionTypesin classFunction
-
getDeclaringClass
Description copied from class:FunctionReturns theClassobject representing the class or interface that declares the executable represented by this object.- Specified by:
getDeclaringClassin classFunction- See Also:
-
contextualize
Description copied from class:FunctionCaller uses this method to tellFunctionabout how it is being used. By default, this methods ignores the given context by returningthis.- Overrides:
contextualizein classFunction
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypesin classFunction
-
getSignature
Description copied from class:FunctionGets the signature for this for use in lists- Specified by:
getSignaturein classFunction
-
getParameterAnnotations
Description copied from class:FunctionGets the annotations on parameters.- Specified by:
getParameterAnnotationsin classFunction
-
getParameterNames
Description copied from class:FunctionGets the list of parameter names.- Specified by:
getParameterNamesin classFunction
-
invoke
public Object invoke(StaplerRequest2 req, StaplerResponse2 rsp, Object o, Object... args) throws IllegalAccessException, InvocationTargetException, jakarta.servlet.ServletException Description copied from class:FunctionInvokes the method.- Overrides:
invokein classFunction- Throws:
IllegalAccessExceptionInvocationTargetExceptionjakarta.servlet.ServletException
-
getAnnotation
- Specified by:
getAnnotationin classFunction
-
getAnnotations
- Specified by:
getAnnotationsin classFunction
-