public class TemporaryMethodKey
extends MethodKey
A temporary implementation of MethodKey used to perform a fast lookup for a method using a set of arguments to a method
| Constructor and description |
|---|
TemporaryMethodKey(Class sender, String name, Object[] parameterValues, boolean isCallToSuper)Constructs a new TemporaryMethodKey. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
getParameterCount()Returns the number of parameters for this method key. |
|
public Class |
getParameterType(int index)Gets the class type of the parameter at the specified index. |
| Methods inherited from class | Name |
|---|---|
class MethodKey |
createCopy, createHashCode, equals, equals, getName, getParameterCount, getParameterType, getParamterTypes, hashCode, toString |
Constructs a new TemporaryMethodKey.
sender - the class making the method callname - the method nameparameterValues - the actual parameter values (used to determine types)isCallToSuper - true if this is a call to a super methodReturns the number of parameters for this method key.
Gets the class type of the parameter at the specified index. If the parameter value is a Class object, returns it directly. Otherwise, returns the class of the parameter value. If the parameter is null, returns Object.class.
index - the parameter indexCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.