Package org.kohsuke.stapler
Class Function.InstanceFunction
java.lang.Object
org.kohsuke.stapler.Function
org.kohsuke.stapler.Function.InstanceFunction
- Enclosing class:
- Function
Normal instance methods.
-
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 TypeMethodDescription<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.final StringGets the human readable name of this function.Type[]final StringgetName()Gets the method name.Annotation[][]Gets the annotations on parameters.final 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 listsprotected MethodHandlehandle()invoke(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
contextualize, invoke, returnNull
-
Field Details
-
m
-
-
Constructor Details
-
InstanceFunction
-
-
Method Details
-
getParameterTypes
Description copied from class:FunctionGets the type of parameters in a single array.- Specified by:
getParameterTypesin classFunction
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypesin classFunction
-
getParameterAnnotations
Description copied from class:FunctionGets the annotations on parameters.- Specified by:
getParameterAnnotationsin classFunction
-
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
-
getSignature
Description copied from class:FunctionGets the signature for this for use in lists- Specified by:
getSignaturein 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
-
getAnnotation
- Specified by:
getAnnotationin classFunction
-
getAnnotations
- Specified by:
getAnnotationsin classFunction
-
getParameterNames
Description copied from class:FunctionGets the list of parameter names.- Specified by:
getParameterNamesin 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:
-
handle
-
invoke
public Object invoke(StaplerRequest2 req, StaplerResponse2 rsp, Object o, Object... args) throws IllegalAccessException, InvocationTargetException Description copied from class:FunctionInvokes the method.- Overrides:
invokein classFunction- Throws:
IllegalAccessExceptionInvocationTargetException
-