public abstract class ExecutableElement extends Object
Constructor
s and Method
s.Modifier and Type | Method and Description |
---|---|
static ExecutableElement |
forConstructor(Constructor<?> constructor) |
static List<ExecutableElement> |
forConstructors(Constructor<?>[] constructors) |
static ExecutableElement |
forMethod(Method method) |
static List<ExecutableElement> |
forMethods(Method[] methods) |
abstract AccessibleObject |
getAccessibleObject() |
abstract ElementType |
getElementType() |
abstract Type[] |
getGenericParameterTypes() |
String |
getIdentifier() |
abstract Member |
getMember() |
abstract Annotation[][] |
getParameterAnnotations() |
abstract List<String> |
getParameterNames(javax.validation.ParameterNameProvider parameterNameProvider) |
abstract Class<?>[] |
getParameterTypes() |
abstract Class<?> |
getReturnType() |
abstract String |
getSimpleName() |
abstract boolean |
isGetterMethod() |
boolean |
overrides(ExecutableElement other)
Checks, whether the represented method overrides the given method.
|
public static ExecutableElement forConstructor(Constructor<?> constructor)
public static List<ExecutableElement> forConstructors(Constructor<?>[] constructors)
public static ExecutableElement forMethod(Method method)
public static List<ExecutableElement> forMethods(Method[] methods)
public abstract List<String> getParameterNames(javax.validation.ParameterNameProvider parameterNameProvider)
public abstract Annotation[][] getParameterAnnotations()
public abstract Class<?>[] getParameterTypes()
public abstract Class<?> getReturnType()
public abstract Type[] getGenericParameterTypes()
public abstract AccessibleObject getAccessibleObject()
public abstract Member getMember()
public abstract ElementType getElementType()
public abstract String getSimpleName()
public abstract boolean isGetterMethod()
public String getIdentifier()
public boolean overrides(ExecutableElement other)
other
- The method to test.true
If this methods overrides the passed method,
false
otherwise.Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved