| 
 | ||||||||||
| 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 Methodwrapper. | |
| Method Summary | |
|---|---|
| static boolean | areMethodsEqual(Method m1,
                Method m2)Checks if given two Methods 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 MethodorPolymorphicMethod. | 
|  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 wrap| Method Detail | 
|---|
public Method getMethod()
public static boolean areMethodsEqual(Method m1,
                                      Method m2)
Methods 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 signature
public 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 Objectobj - object to compareObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||