org.apache.ws.jaxme.js.pattern

Class MethodKey

Implemented Interfaces:
Comparable

public class MethodKey
extends java.lang.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 MethodKey.

Method Summary

int
compareTo(Object o)
Compares this GeneratedMethod to the given GeneratedMethod o.
boolean
equals(Object o)
Returns whether this method key equals the object o.
int
hashCode()

Constructor Details

MethodKey

public MethodKey(JavaMethod pMethod)
Creates a new instance of MethodKey.

Method Details

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.

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()