@InterfaceAudience.Private @InterfaceStability.Unstable public class MethodHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MethodHelper.NotImplemented
This is an annotation which allows a class to signal that while it is "implementing"
a method because it is specified by a parent class or interface, that the implementation
just throws an exception, because it is not implemented.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isNotImplementedAnnotationPresent(Method m,
Class<?> clazz)
Given a method and a class, this will return true if the method is declared in the class,
and if it is, if the NotImplemented annotation is present.
|
static RuntimeException |
methodNotImplemented() |
static boolean |
methodSignatureEqual(Method m1,
Method m2)
This implements a stripped down version of method equality.
|
public static boolean isNotImplementedAnnotationPresent(Method m, Class<?> clazz)
public static RuntimeException methodNotImplemented()
public static boolean methodSignatureEqual(Method m1, Method m2)
Copyright © 2007-2017 The Apache Software Foundation