org.hibernate.validator.internal.metadata.raw
Class ExecutableElement

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.raw.ExecutableElement

public abstract class ExecutableElement
extends Object

Provides a unified view on Constructors and Methods.

Author:
Gunnar Morling

Method Summary
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(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 Middleware, LLC. All Rights Reserved