Class JavaBeanExecutable<T extends Executable>
- java.lang.Object
-
- org.hibernate.validator.internal.properties.javabean.JavaBeanExecutable<T>
-
- All Implemented Interfaces:
Callable,Constrainable,JavaBeanAnnotatedConstrainable,JavaBeanAnnotatedElement
- Direct Known Subclasses:
JavaBeanConstructor,JavaBeanMethod
public abstract class JavaBeanExecutable<T extends Executable> extends Object implements Callable, JavaBeanAnnotatedConstrainable
- Author:
- Marko Bekhta, Guillaume Smet
-
-
Field Summary
Fields Modifier and Type Field Description protected Texecutable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AnnotatedTypegetAnnotatedType()<A extends Annotation>
AgetAnnotation(Class<A> annotationClass)Annotation[]getDeclaredAnnotations()Class<?>getDeclaringClass()TypegetGenericType()StringgetName()intgetParameterCount()TypegetParameterGenericType(int index)StringgetParameterName(ExecutableParameterNameProvider parameterNameProvider, int parameterIndex)List<JavaBeanParameter>getParameters()Class<?>[]getParameterTypes()SignaturegetSignature()TypegetType()TypegetTypeForValidatorResolution()inthashCode()booleanhasParameters()booleanhasReturnValue()booleanisPrivate()booleanisResolvedToSameMethodInHierarchy(ExecutableHelper executableHelper, Class<?> mainSubType, Callable superTypeMethod)booleanoverrides(ExecutableHelper executableHelper, Callable superTypeMethod)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.validator.internal.properties.Constrainable
as, getConstrainedElementKind
-
Methods inherited from interface org.hibernate.validator.internal.properties.javabean.JavaBeanAnnotatedElement
getTypeParameters, isAnnotationPresent
-
-
-
-
Field Detail
-
executable
protected final T extends Executable executable
-
-
Method Detail
-
hasReturnValue
public boolean hasReturnValue()
- Specified by:
hasReturnValuein interfaceCallable
-
hasParameters
public boolean hasParameters()
- Specified by:
hasParametersin interfaceCallable
-
getName
public String getName()
- Specified by:
getNamein interfaceConstrainable
-
getDeclaringClass
public Class<?> getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceConstrainable
-
getTypeForValidatorResolution
public Type getTypeForValidatorResolution()
- Specified by:
getTypeForValidatorResolutionin interfaceConstrainable
-
getType
public Type getType()
- Specified by:
getTypein interfaceConstrainable- Specified by:
getTypein interfaceJavaBeanAnnotatedElement
-
getParameterName
public String getParameterName(ExecutableParameterNameProvider parameterNameProvider, int parameterIndex)
- Specified by:
getParameterNamein interfaceCallable
-
getSignature
public Signature getSignature()
- Specified by:
getSignaturein interfaceCallable
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceJavaBeanAnnotatedElement
-
overrides
public boolean overrides(ExecutableHelper executableHelper, Callable superTypeMethod)
-
isResolvedToSameMethodInHierarchy
public boolean isResolvedToSameMethodInHierarchy(ExecutableHelper executableHelper, Class<?> mainSubType, Callable superTypeMethod)
- Specified by:
isResolvedToSameMethodInHierarchyin interfaceCallable
-
getGenericType
public Type getGenericType()
- Specified by:
getGenericTypein interfaceJavaBeanAnnotatedElement
-
getAnnotatedType
public AnnotatedType getAnnotatedType()
- Specified by:
getAnnotatedTypein interfaceJavaBeanAnnotatedElement
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
- Specified by:
getAnnotationin interfaceJavaBeanAnnotatedElement
-
getParameters
public List<JavaBeanParameter> getParameters()
-
getParameterGenericType
public Type getParameterGenericType(int index)
- Specified by:
getParameterGenericTypein interfaceCallable
-
getParameterCount
public int getParameterCount()
- Specified by:
getParameterCountin interfaceCallable
-
getParameterTypes
public Class<?>[] getParameterTypes()
- Specified by:
getParameterTypesin interfaceCallable
-
-