|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.runtime.ConversionHandler
public abstract class ConversionHandler extends java.lang.Object
This class is a general adapter to map a call to a Java interface to a given delegate.
Constructor Summary | |
ConversionHandler(java.lang.Object delegate)
Creates a ConversionHandler with an delegate. |
Method Summary | |
---|---|
protected boolean
|
checkMethod(java.lang.reflect.Method method)
|
boolean
|
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.lang.Object
|
getDelegate()
Returns the delegate. |
int
|
hashCode()
Returns a hash code value for the delegate. |
java.lang.Object
|
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
This method is a default implementation for the invoke method given in InvocationHandler. |
java.lang.Object
|
invokeCustom(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
This method is called for all Methods not defined on Object. |
static boolean
|
isCoreObjectMethod(java.lang.reflect.Method method)
Checks whether a method is a core method from java.lang.Object. |
java.lang.String
|
toString()
Returns a String version of the delegate. |
Methods inherited from 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() |
Constructor Detail |
---|
public ConversionHandler(java.lang.Object delegate)
delegate
- the delegate
Method Detail |
---|
protected boolean checkMethod(java.lang.reflect.Method method)
public boolean equals(java.lang.Object obj)
public java.lang.Object getDelegate()
public int hashCode()
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
proxy
- the proxymethod
- the methodargs
- the arguments
public java.lang.Object invokeCustom(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
proxy
- the proxymethod
- the methodargs
- the arguments
public static boolean isCoreObjectMethod(java.lang.reflect.Method method)
method
- the method to check
public java.lang.String toString()
Groovy Documentation