public class InterfaceSimplifier extends Object
| Modifier and Type | Method and Description |
|---|---|
static Method |
getOriginalMethod(Method method)
Returns the method on the original interface that the simplified interface with given method was generated from
using the
simplify(Class) method (i.e. |
static boolean |
isSimplified(Class<?> cls)
Determines whether given class is simplified or not.
|
static boolean |
isSimplified(Method method)
Determines whether the method (declared on the simplified interface, i.e.
|
static Class<?> |
simplify(Class<?> intf) |
public static Method getOriginalMethod(Method method)
simplify(Class) method (i.e. this method is kind of reverse to the simplify(Class)
method).
The returned method may or may not have different signature from the supplied method - that depends on whether
the simplify(Class) simplified the method or not.
method - the potentially simplified methodpublic static boolean isSimplified(Class<?> cls)
simplify(Class).cls - the classsimplify(Class) method, false otherwise.public static boolean isSimplified(Method method)
isSimplified(method.getDeclaringClass() returns true) has been "tampered with" by the simplifier or
has been left intact.
If you want to get the original method that the supplied method corresponds to, use
the getOriginalMethod(Method) method.
method - the potentially simplified method present on a simplified classCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.