|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.js.pattern.MethodKey
public class MethodKey
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(java.lang.Object o)
Compares this GeneratedMethod to the given GeneratedMethod o . |
boolean |
equals(java.lang.Object o)
Returns whether this method key equals the object o . |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodKey(JavaMethod pMethod)
MethodKey
.
Method Detail |
---|
public boolean equals(java.lang.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
.
equals
in class java.lang.Object
public int compareTo(java.lang.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.
compareTo
in interface java.lang.Comparable
java.lang.ClassCastException
- The object o is not an instance of MethodKey.public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |