|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.reflection.ParameterTypes groovy.lang.MetaMethod
public abstract class MetaMethod extends ParameterTypes
Represents a Method on a Java object a little like java.lang.reflect.Method except without using reflection to invoke the method
Field Summary |
---|
Fields inherited from class ParameterTypes | |
---|---|
isVargsMethod, nativeParamTypes, parameterTypes |
Constructor Summary | |
MetaMethod()
|
|
MetaMethod(java.lang.Class[] pt)
|
Method Summary | |
---|---|
void
|
checkParameters(java.lang.Class[] arguments)
Checks that the given parameters are valid to call this method |
java.lang.Object
|
clone()
|
java.lang.Object
|
doMethodInvoke(java.lang.Object object, java.lang.Object[] argumentArray)
|
protected static boolean
|
equal(CachedClass[] a, java.lang.Class[] b)
|
protected static boolean
|
equal(CachedClass[] a, CachedClass[] b)
|
CachedClass
|
getDeclaringClass()
|
java.lang.String
|
getDescriptor()
|
int
|
getModifiers()
|
java.lang.String
|
getMopName()
|
java.lang.String
|
getName()
|
java.lang.Class
|
getReturnType()
|
java.lang.String
|
getSignature()
|
java.lang.Object
|
invoke(java.lang.Object object, java.lang.Object[] arguments)
|
boolean
|
isAbstract()
|
boolean
|
isCacheable()
|
boolean
|
isMethod(MetaMethod method)
|
boolean
|
isPrivate()
|
boolean
|
isProtected()
|
boolean
|
isPublic()
|
boolean
|
isSame(MetaMethod method)
@param method the method to compare against |
boolean
|
isStatic()
|
java.lang.RuntimeException
|
processDoMethodInvokeException(java.lang.Exception e, java.lang.Object object, java.lang.Object[] argumentArray)
|
java.lang.String
|
toString()
|
Methods inherited from class ParameterTypes | |
---|---|
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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 MetaMethod()
public MetaMethod(java.lang.Class[] pt)
Method Detail |
---|
public void checkParameters(java.lang.Class[] arguments)
arguments
- the arguments to check
public java.lang.Object clone()
public java.lang.Object doMethodInvoke(java.lang.Object object, java.lang.Object[] argumentArray)
protected static boolean equal(CachedClass[] a, java.lang.Class[] b)
protected static boolean equal(CachedClass[] a, CachedClass[] b)
public CachedClass getDeclaringClass()
public java.lang.String getDescriptor()
public int getModifiers()
public java.lang.String getMopName()
public java.lang.String getName()
public java.lang.Class getReturnType()
public java.lang.String getSignature()
public java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)
public boolean isAbstract()
public boolean isCacheable()
public boolean isMethod(MetaMethod method)
public final boolean isPrivate()
public final boolean isProtected()
public final boolean isPublic()
public final boolean isSame(MetaMethod method)
method
- the method to compare against
public boolean isStatic()
public final java.lang.RuntimeException processDoMethodInvokeException(java.lang.Exception e, java.lang.Object object, java.lang.Object[] argumentArray)
public java.lang.String toString()
Groovy Documentation