public class DefaultInvoker extends Object implements Invoker
Invoker that performs the expected operation without anything extra.| Constructor and Description |
|---|
DefaultInvoker() |
| 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. |
protected org.codehaus.groovy.runtime.callsite.CallSite |
fakeCallSite(String method) |
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 methodType,
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 methodType, 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 Invokerprotected org.codehaus.groovy.runtime.callsite.CallSite fakeCallSite(String method)
Copyright © 2011–2019. All rights reserved.