public class GroovyObjectMethodHandler extends java.lang.Object implements javassist.util.proxy.MethodHandler
Javassist MethodHandler for handling GroovyObject methods delegates getProperty, setProperty & invokeMethod to super class's MetaClass
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
GET_META_CLASS |
|
static java.lang.String |
GET_PROPERTY |
|
static java.lang.Object |
INVOKE_IMPLEMENTATION |
|
static java.lang.String |
INVOKE_METHOD |
|
static java.lang.String |
META_CLASS_PROPERTY |
|
static java.lang.String |
SET_META_CLASS |
|
static java.lang.String |
SET_PROPERTY |
|
protected groovy.lang.MetaClass |
metaClass |
|
protected java.lang.Class<?> |
proxyClass |
Constructor and description |
---|
GroovyObjectMethodHandler
(java.lang.Class<?> proxyClass) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.Object |
getProperty(java.lang.Object self, java.lang.String property) |
|
protected java.lang.Object |
getPropertyAfterResolving(java.lang.Object delegate, java.lang.String property) |
|
protected java.lang.Object |
getPropertyBeforeResolving(java.lang.Object self, java.lang.String property) |
|
public groovy.lang.MetaClass |
getThisMetaClass() |
|
public java.lang.Object |
handleInvocation(java.lang.Object self, java.lang.reflect.Method thisMethod, java.lang.Object[] args) |
|
public java.lang.Object |
invoke(java.lang.Object self, java.lang.reflect.Method thisMethod, java.lang.reflect.Method proceed, java.lang.Object[] args) |
|
protected java.lang.Object |
invokeMethodAfterResolving(java.lang.Object delegate, java.lang.String name, java.lang.Object[] args) |
|
public java.lang.Object |
invokeMethodBeforeResolving(java.lang.Object self, java.lang.String name, java.lang.Object[] args) |
|
public java.lang.Object |
invokeThisMethod(java.lang.Object self, java.lang.String name, java.lang.Object[] args) |
|
protected java.lang.Object |
resolveDelegate(java.lang.Object self) |
|
protected java.lang.Object |
resolveDelegateAndGetProperty(java.lang.Object self, java.lang.String property) |
|
protected java.lang.Object |
resolveDelegateAndInvokeThisMethod(java.lang.Object self, java.lang.String name, java.lang.Object[] args) |
|
protected void |
resolveDelegateAndSetProperty(java.lang.Object self, java.lang.String property, java.lang.Object newValue) |
|
public void |
setProperty(java.lang.Object self, java.lang.String property, java.lang.Object newValue) |
|
protected void |
setPropertyAfterResolving(java.lang.Object delegate, java.lang.String property, java.lang.Object newValue) |
|
protected boolean |
setPropertyBeforeResolving(java.lang.Object self, java.lang.String property, java.lang.Object newValue) |
|
public void |
setThisMetaClass(groovy.lang.MetaClass metaClass) |
|
public boolean |
wasHandled(java.lang.Object result) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |