public class SandboxInvoker extends Object implements Invoker
Invoker that goes through the groovy-sandbox GroovyInterceptor,
so that interactions with Groovy objects can be inspected.| Constructor and Description |
|---|
SandboxInvoker() |
| Modifier and Type | Method and Description |
|---|---|
Object |
constructorCall(Class lhs,
Object[] args) |
Invoker |
contextualize(CallSiteBlock tags)
Returns a child
Invoker used to make a call on behalf of the given CallSiteBlock. |
Object |
getArray(Object lhs,
Object index) |
Object |
getAttribute(Object lhs,
String name) |
Object |
getProperty(Object lhs,
String name) |
Object |
methodCall(Object receiver,
String method,
Object[] args) |
Object |
methodPointer(Object lhs,
String name) |
void |
setArray(Object lhs,
Object index,
Object value) |
void |
setAttribute(Object lhs,
String name,
Object value) |
void |
setProperty(Object lhs,
String name,
Object value) |
Object |
superCall(Class senderType,
Object receiver,
String method,
Object[] args)
Invokespecial equivalent used for "super.foo(...)" kind of method call.
|
public Object methodCall(Object receiver, String method, Object[] args) throws Throwable
methodCall in interface InvokerThrowablepublic Object constructorCall(Class lhs, Object[] args) throws Throwable
constructorCall in interface InvokerThrowablepublic Object superCall(Class senderType, Object receiver, String method, Object[] args) throws Throwable
Invokerpublic Object getProperty(Object lhs, String name) throws Throwable
getProperty in interface InvokerThrowablepublic void setProperty(Object lhs, String name, Object value) throws Throwable
setProperty in interface InvokerThrowablepublic Object getAttribute(Object lhs, String name) throws Throwable
getAttribute in interface InvokerThrowablepublic void setAttribute(Object lhs, String name, Object value) throws Throwable
setAttribute in interface InvokerThrowablepublic Object methodPointer(Object lhs, String name)
methodPointer in interface Invokerpublic Invoker contextualize(CallSiteBlock tags)
InvokerInvoker used to make a call on behalf of the given CallSiteBlock.contextualize in interface InvokerCopyright © 2011–2019. All rights reserved.