|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.util.reflect.PolymorphicMethod
public final class PolymorphicMethod
A wrapper for Method
class. It is intended to supply means of comparing methods which may be polymorphic.
Constructor Summary | |
---|---|
PolymorphicMethod(Method method)
Creates new Method wrapper. |
Method Summary | |
---|---|
static boolean |
areMethodsEqual(Method m1,
Method m2)
Checks if given two Method s have the same signature (name and list of parameters). |
boolean |
equals(Object obj)
This method is to verify if this method may be a polymorphic (specialized) version of given Method or
PolymorphicMethod . |
Method |
getMethod()
|
int |
hashCode()
|
static boolean |
isOverridingMethod(Method original,
Method overriding)
Checks if a method could be a polymorphic version of another method. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PolymorphicMethod(Method method)
Method
wrapper.
method
- method to wrapMethod Detail |
---|
public Method getMethod()
public static boolean areMethodsEqual(Method m1, Method m2)
Method
s have the same signature (name and list of parameters).
m1
- the first methodm2
- the second method
true
if m1
and m2
are both null or have the same signaturepublic static boolean isOverridingMethod(Method original, Method overriding)
original
- the method that may be overriddenoverriding
- the method that may be overriding the original
method
true
if the overriding
method may override the original
onepublic boolean equals(Object obj)
Method
or
PolymorphicMethod
.
equals
in class Object
obj
- object to compareObject.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |