Package com.cloudbees.groovy.cps.sandbox
Class SandboxInvoker
java.lang.Object
com.cloudbees.groovy.cps.sandbox.SandboxInvoker
- All Implemented Interfaces:
Invoker,Serializable
Invoker that goes through the groovy-sandbox GroovyInterceptor,
so that interactions with Groovy objects can be inspected.- 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.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
-
SandboxInvoker
public SandboxInvoker()
-
-
Method Details
-
methodCall
- Specified by:
methodCallin interfaceInvoker- Throws:
Throwable
-
constructorCall
- Specified by:
constructorCallin interfaceInvoker- Throws:
Throwable
-
superCall
public Object superCall(Class senderType, 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
-