Package com.cloudbees.groovy.cps.sandbox
Class DefaultInvoker
java.lang.Object
com.cloudbees.groovy.cps.sandbox.DefaultInvoker
- All Implemented Interfaces:
Invoker,Serializable
Invoker that performs the expected operation without anything extra.- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructorCall(Class lhs, Object[] args) contextualize(CallSiteBlock tags) Returns a childInvokerused to make a call on behalf of the givenCallSiteBlock.protected org.codehaus.groovy.runtime.callsite.CallSitefakeCallSite(String method) getAttribute(Object lhs, String name) getProperty(Object lhs, String name) methodCall(Object receiver, String method, Object[] args) methodPointer(Object lhs, String name) voidvoidsetAttribute(Object lhs, String name, Object value) voidsetProperty(Object lhs, String name, Object value) Invokespecial equivalent used for "super.foo(...)" kind of method call.
-
Constructor Details
-
DefaultInvoker
public DefaultInvoker()
-
-
Method Details
-
methodCall
- Specified by:
methodCallin interfaceInvoker- Throws:
Throwable
-
constructorCall
- Specified by:
constructorCallin interfaceInvoker- Throws:
Throwable
-
superCall
public Object superCall(Class methodType, Object receiver, String method, Object[] args) throws Throwable Description copied from interface:InvokerInvokespecial equivalent used for "super.foo(...)" kind of method call. -
getProperty
- Specified by:
getPropertyin interfaceInvoker- Throws:
Throwable
-
setProperty
- Specified by:
setPropertyin interfaceInvoker- Throws:
Throwable
-
getAttribute
- Specified by:
getAttributein interfaceInvoker- Throws:
Throwable
-
setAttribute
- Specified by:
setAttributein interfaceInvoker- Throws:
Throwable
-
getArray
-
setArray
-
methodPointer
- Specified by:
methodPointerin interfaceInvoker
-
cast
-
contextualize
Description copied from interface:InvokerReturns a childInvokerused to make a call on behalf of the givenCallSiteBlock.- Specified by:
contextualizein interfaceInvoker
-
fakeCallSite
-