public class MethodMatcher extends Object
| Constructor and Description |
|---|
MethodMatcher(Method aMethod) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getMethodParameters()
Should only be used after isMethodMatchingAgainstParameter() is invoked and returns true.
|
protected int |
getNumberOfValidParameters(Class[] aListOfParametersType) |
boolean |
isMethodMatchingAgainstParameter(List aArgs)
Match the given parameters again the method
If the parameters match, cast and save the parameters in mMethodParameters object.
|
protected void |
setMethodParameters(int aIndice,
Object aParameter)
Set the parameter "aIndice" to aParameter (in the list of parameter used to invoke the method)
|
protected boolean |
specificMatching(Class lParameterType,
int aIndice)
Specific method if you need to add a specific matching type for the server or a client.
|
public MethodMatcher(Method aMethod)
public Object[] getMethodParameters()
public boolean isMethodMatchingAgainstParameter(List aArgs)
mMethod - aArgs - protected int getNumberOfValidParameters(Class[] aListOfParametersType)
protected void setMethodParameters(int aIndice,
Object aParameter)
aIndice - aParameter - protected boolean specificMatching(Class lParameterType, int aIndice)
lParameterType - Copyright © 2013. All Rights Reserved.