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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
<A extends Annotation>
AgetAnnotation
(Class<A> annotationClass) Class<?>
getName()
int
getParameterGenericType
(int index) getParameterName
(ExecutableParameterNameProvider parameterNameProvider, int parameterIndex) Class<?>[]
getType()
int
hashCode()
boolean
boolean
boolean
boolean
isResolvedToSameMethodInHierarchy
(ExecutableHelper executableHelper, Class<?> mainSubType, Callable superTypeMethod) boolean
overrides
(ExecutableHelper executableHelper, Callable superTypeMethod) toString()
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 Details
-
executable
-
-
Method Details
-
hasReturnValue
public boolean hasReturnValue()- Specified by:
hasReturnValue
in interfaceCallable
-
hasParameters
public boolean hasParameters()- Specified by:
hasParameters
in interfaceCallable
-
getName
- Specified by:
getName
in interfaceConstrainable
-
getDeclaringClass
- Specified by:
getDeclaringClass
in interfaceConstrainable
-
getTypeForValidatorResolution
- Specified by:
getTypeForValidatorResolution
in interfaceConstrainable
-
getType
- Specified by:
getType
in interfaceConstrainable
- Specified by:
getType
in interfaceJavaBeanAnnotatedElement
-
getParameterName
public String getParameterName(ExecutableParameterNameProvider parameterNameProvider, int parameterIndex) - Specified by:
getParameterName
in interfaceCallable
-
isPrivate
public boolean isPrivate() -
getSignature
- Specified by:
getSignature
in interfaceCallable
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceJavaBeanAnnotatedElement
-
overrides
-
isResolvedToSameMethodInHierarchy
public boolean isResolvedToSameMethodInHierarchy(ExecutableHelper executableHelper, Class<?> mainSubType, Callable superTypeMethod) - Specified by:
isResolvedToSameMethodInHierarchy
in interfaceCallable
-
getGenericType
- Specified by:
getGenericType
in interfaceJavaBeanAnnotatedElement
-
getAnnotatedType
- Specified by:
getAnnotatedType
in interfaceJavaBeanAnnotatedElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceJavaBeanAnnotatedElement
-
getParameters
-
getParameterGenericType
- Specified by:
getParameterGenericType
in interfaceCallable
-
getParameterCount
public int getParameterCount()- Specified by:
getParameterCount
in interfaceCallable
-
getParameterTypes
- Specified by:
getParameterTypes
in interfaceCallable
-
equals
-
hashCode
public int hashCode() -
toString
-