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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<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.final String
Gets the human readable name of this function.Type[]
final String
getName()
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 MethodHandle
handle()
invoke
(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
contextualize, invoke, returnNull
-
Field Details
-
m
-
-
Constructor Details
-
InstanceFunction
-
-
Method Details
-
getParameterTypes
Description copied from class:Function
Gets the type of parameters in a single array.- Specified by:
getParameterTypes
in classFunction
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypes
in classFunction
-
getParameterAnnotations
Description copied from class:Function
Gets the annotations on parameters.- Specified by:
getParameterAnnotations
in classFunction
-
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
-
getSignature
Description copied from class:Function
Gets the signature for this for use in lists- Specified by:
getSignature
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
-
getAnnotation
- Specified by:
getAnnotation
in classFunction
-
getAnnotations
- Specified by:
getAnnotations
in classFunction
-
getParameterNames
Description copied from class:Function
Gets the list of parameter names.- Specified by:
getParameterNames
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:
-
handle
-
invoke
public Object invoke(StaplerRequest2 req, StaplerResponse2 rsp, Object o, Object... args) throws IllegalAccessException, InvocationTargetException Description copied from class:Function
Invokes the method.- Overrides:
invoke
in classFunction
- Throws:
IllegalAccessException
InvocationTargetException
-