org.hibernate.validator.internal.metadata.location
Class MethodConstraintLocation
java.lang.Object
org.hibernate.validator.internal.metadata.location.MethodConstraintLocation
- All Implemented Interfaces:
- ConstraintLocation
public class MethodConstraintLocation
- extends java.lang.Object
- implements ConstraintLocation
A ConstraintLocation implementation that represents a method or constructor.
parameter or return value.
- Author:
- Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MethodConstraintLocation
public MethodConstraintLocation(java.lang.reflect.Method method)
MethodConstraintLocation
public MethodConstraintLocation(java.lang.reflect.Method method,
java.lang.Integer parameterIndex)
- Creates a new
MethodConstraintLocation.
- Parameters:
method - The method of the location to be created.parameterIndex - The parameter index of the location to be created.
MethodConstraintLocation
public MethodConstraintLocation(ExecutableElement executableElement,
java.lang.Integer parameterIndex)
getBeanClass
public java.lang.Class<?> getBeanClass()
- Specified by:
getBeanClass in interface ConstraintLocation
typeOfAnnotatedElement
public java.lang.reflect.Type typeOfAnnotatedElement()
- Description copied from interface:
ConstraintLocation
- Returns the type of the element at this constraint location. Depending
on the concrete implementation this might be the type of an annotated bean, method parameter etc.
- Specified by:
typeOfAnnotatedElement in interface ConstraintLocation
- Returns:
- The type of the element at this constraint location.
getMember
public java.lang.reflect.Member getMember()
- Specified by:
getMember in interface ConstraintLocation
getExecutableElement
public ExecutableElement getExecutableElement()
getElementType
public java.lang.annotation.ElementType getElementType()
- Specified by:
getElementType in interface ConstraintLocation
getParameterIndex
public java.lang.Integer getParameterIndex()
- Returns:
- returns the parameter index of this constraint location or
null if
this location represents a executableElement return value.
getParameterType
public java.lang.Class<?> getParameterType()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2012 Oracle Corporation. All Rights Reserved.