[Java] Class MethodKey
- org.codehaus.groovy.runtime.MethodKey
public abstract class MethodKey extends Object
An abstract base class for a key used for comparators and Map keys to lookup a method by name and parameter types
Constructor Summary
Constructor and description |
---|
MethodKey
(Class sender, String name, boolean isCallToSuper) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public MethodKey |
createCopy() Creates an immutable copy that we can cache. | |
protected int |
createHashCode() | |
public boolean |
equals(Object that) | |
public boolean |
equals(MethodKey that) | |
public String |
getName() | |
public abstract int |
getParameterCount() | |
public abstract Class |
getParameterType(int index) | |
public List |
getParamterTypes() | |
public int |
hashCode() | |
public String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public MethodKey(Class sender, String name, boolean isCallToSuper)
Method Detail
public MethodKey createCopy()
Creates an immutable copy that we can cache.
protected int createHashCode()
public boolean equals(Object that)
public boolean equals(MethodKey that)
public String getName()
public abstract int getParameterCount()
public abstract Class getParameterType(int index)
public List getParamterTypes()
public int hashCode()
public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/runtime/MethodKey.html