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