Package org.codehaus.groovy.runtime
Class DefaultMethodKey
java.lang.Object
org.codehaus.groovy.runtime.MethodKey
org.codehaus.groovy.runtime.DefaultMethodKey
A default implementation of MethodKey
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMethodKey(Class sender, String name, Class[] parameterTypes, boolean isCallToSuper) Constructs a method key with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionintReturns how many parameter types this key has.getParameterType(int index) Returns the parameter type atindex.Methods inherited from class org.codehaus.groovy.runtime.MethodKey
createCopy, createHashCode, equals, equals, getName, getParamterTypes, hashCode, toString
-
Constructor Details
-
DefaultMethodKey
Constructs a method key with the specified parameters.- Parameters:
sender- the sender classname- the method nameparameterTypes- the class types of the parametersisCallToSuper- whether this is a super method call
-
-
Method Details
-
getParameterCount
public int getParameterCount()Description copied from class:MethodKeyReturns how many parameter types this key has.- Specified by:
getParameterCountin classMethodKey- Returns:
- the parameter count
-
getParameterType
Description copied from class:MethodKeyReturns the parameter type atindex.MethodKey.equals(MethodKey)compares these classes by identity.- Specified by:
getParameterTypein classMethodKey- Parameters:
index- zero-based parameter index- Returns:
- the class at that index
-