public class UberMethods
extends java.lang.Object
| Constructor and Description |
|---|
UberMethods() |
| Modifier and Type | Method and Description |
|---|---|
static Visibility |
getVisibility(java.lang.reflect.Method m) |
static boolean |
isEqualPackage(java.lang.reflect.Method a,
java.lang.reflect.Method b)
Returns
true if both methods are declared in the same package. |
static boolean |
isEqualSignature(java.lang.reflect.Method a,
java.lang.reflect.Method b)
Returns
true if methods have equal names and equal argument lists. |
static boolean |
isFinal(java.lang.reflect.Method m) |
static boolean |
isStatic(java.lang.reflect.Method m) |
static boolean |
overrides(java.lang.reflect.Method a,
java.lang.reflect.Method b)
Returns
true if a overrides b. |
public static Visibility getVisibility(java.lang.reflect.Method m)
public static boolean isFinal(java.lang.reflect.Method m)
public static boolean isStatic(java.lang.reflect.Method m)
public static boolean overrides(java.lang.reflect.Method a,
java.lang.reflect.Method b)
Returns true if a overrides b.
Note: returns false for equal methods! For method doesn't override itself.
public static boolean isEqualPackage(java.lang.reflect.Method a,
java.lang.reflect.Method b)
true if both methods are declared in the same package.public static boolean isEqualSignature(java.lang.reflect.Method a,
java.lang.reflect.Method b)
true if methods have equal names and equal argument lists.