public abstract class MetaMethod extends ParameterTypes implements java.lang.Cloneable
Method
except without using reflection to invoke the methodisVargsMethod, nativeParamTypes, parameterTypes
Constructor and Description |
---|
MetaMethod() |
MetaMethod(java.lang.Class[] pt) |
Modifier and Type | Method and Description |
---|---|
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,
CachedClass[] b) |
protected static boolean |
equal(CachedClass[] a,
java.lang.Class[] b) |
abstract CachedClass |
getDeclaringClass() |
java.lang.String |
getDescriptor() |
abstract int |
getModifiers() |
java.lang.String |
getMopName() |
abstract java.lang.String |
getName() |
abstract java.lang.Class |
getReturnType() |
java.lang.String |
getSignature() |
abstract 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) |
boolean |
isStatic() |
java.lang.RuntimeException |
processDoMethodInvokeException(java.lang.Exception e,
java.lang.Object object,
java.lang.Object[] argumentArray) |
java.lang.String |
toString() |
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, getPT, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
public MetaMethod()
public MetaMethod(java.lang.Class[] pt)
public abstract int getModifiers()
public abstract java.lang.String getName()
public abstract java.lang.Class getReturnType()
public abstract CachedClass getDeclaringClass()
public abstract java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)
public void checkParameters(java.lang.Class[] arguments)
arguments
- the arguments to checkjava.lang.IllegalArgumentException
- if the parameters are not validpublic boolean isMethod(MetaMethod method)
protected static boolean equal(CachedClass[] a, java.lang.Class[] b)
protected static boolean equal(CachedClass[] a, CachedClass[] b)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isStatic()
public boolean isAbstract()
public final boolean isPrivate()
public final boolean isProtected()
public final boolean isPublic()
public final boolean isSame(MetaMethod method)
method
- the method to compare againstpublic boolean isCacheable()
public java.lang.String getDescriptor()
public java.lang.String getSignature()
public java.lang.String getMopName()
public final java.lang.RuntimeException processDoMethodInvokeException(java.lang.Exception e, java.lang.Object object, java.lang.Object[] argumentArray)
public java.lang.Object doMethodInvoke(java.lang.Object object, java.lang.Object[] argumentArray)