org.hibernate.validator.internal.metadata.raw
Class ExecutableElement
java.lang.Object
org.hibernate.validator.internal.metadata.raw.ExecutableElement
public abstract class ExecutableElement
- extends Object
Provides a unified view on Constructors and Methods.
- Author:
- Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forConstructor
public static ExecutableElement forConstructor(Constructor<?> constructor)
forConstructors
public static List<ExecutableElement> forConstructors(Constructor<?>[] constructors)
forMethod
public static ExecutableElement forMethod(Method method)
forMethods
public static List<ExecutableElement> forMethods(Method[] methods)
getParameterNames
public abstract List<String> getParameterNames(ParameterNameProvider parameterNameProvider)
getParameterAnnotations
public abstract Annotation[][] getParameterAnnotations()
getParameterTypes
public abstract Class<?>[] getParameterTypes()
getReturnType
public abstract Class<?> getReturnType()
getGenericParameterTypes
public abstract Type[] getGenericParameterTypes()
getAccessibleObject
public abstract AccessibleObject getAccessibleObject()
getMember
public abstract Member getMember()
getElementType
public abstract ElementType getElementType()
getSimpleName
public abstract String getSimpleName()
isGetterMethod
public abstract boolean isGetterMethod()
getIdentifier
public String getIdentifier()
overrides
public boolean overrides(ExecutableElement other)
- Checks, whether the represented method overrides the given method.
- Parameters:
other - The method to test.
- Returns:
true If this methods overrides the passed method,
false otherwise.
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved