@InterfaceAudience.Private @InterfaceStability.Unstable public class MethodHelper extends java.lang.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(java.lang.reflect.Method m,
java.lang.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 java.lang.RuntimeException |
methodNotImplemented() |
static boolean |
methodSignatureEqual(java.lang.reflect.Method m1,
java.lang.reflect.Method m2)
This implements a stripped down version of method equality.
|
public static boolean isNotImplementedAnnotationPresent(java.lang.reflect.Method m, java.lang.Class<?> clazz)
public static java.lang.RuntimeException methodNotImplemented()
public static boolean methodSignatureEqual(java.lang.reflect.Method m1, java.lang.reflect.Method m2)
Copyright © 2007-2017 The Apache Software Foundation