org.apache.ws.jaxme.js.pattern

Class MethodKey

public class MethodKey extends Object implements Comparable

This class is a key for generated methods. The main purpose is to determine, whether some method is present in more than one interface. In that case we have to ensure, that it is generated only once.
Constructor Summary
MethodKey(JavaMethod pMethod)
Creates a new instance of {@link MethodKey}.
Method Summary
intcompareTo(Object o)

Compares this GeneratedMethod to the given GeneratedMethod o.

booleanequals(Object o)

Returns whether this method key equals the object o.

inthashCode()

Constructor Detail

MethodKey

public MethodKey(JavaMethod pMethod)
Creates a new instance of {@link MethodKey}.

Method Detail

compareTo

public int compareTo(Object o)

Compares this GeneratedMethod to the given GeneratedMethod o. More precise, compares the method name, the number of parameters and the class names of the parameters, in that order.

Throws: ClassCastException The object o is not an instance of MethodKey.

equals

public boolean equals(Object o)

Returns whether this method key equals the object o. This is the case, if o != null, o instanceof MethodKey, and compareTo(o) == 0.

hashCode

public int hashCode()