|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.location.ExecutableConstraintLocation
public class ExecutableConstraintLocation
A ConstraintLocation implementation that represents a method or constructor.
parameter or return value.
| Constructor Summary | |
|---|---|
ExecutableConstraintLocation(ExecutableElement executableElement)
|
|
ExecutableConstraintLocation(ExecutableElement executableElement,
Integer parameterIndex)
|
|
ExecutableConstraintLocation(Method method)
|
|
ExecutableConstraintLocation(Method method,
Integer parameterIndex)
Creates a new ExecutableConstraintLocation. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Class<?> |
getBeanClass()
Returns the class on which the constraint is defined. |
ElementType |
getElementType()
Returns the ElementType on which the constraint is defined. |
ExecutableElement |
getExecutableElement()
|
Member |
getMember()
Returns the member the constraint is defined on. |
Integer |
getParameterIndex()
|
Class<?> |
getParameterType()
|
int |
hashCode()
|
String |
toString()
|
Type |
typeOfAnnotatedElement()
Returns the type of the element at this constraint location. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutableConstraintLocation(Method method)
public ExecutableConstraintLocation(Method method,
Integer parameterIndex)
ExecutableConstraintLocation.
method - The method of the location to be created.parameterIndex - The parameter index of the location to be created.public ExecutableConstraintLocation(ExecutableElement executableElement)
public ExecutableConstraintLocation(ExecutableElement executableElement,
Integer parameterIndex)
| Method Detail |
|---|
public Class<?> getBeanClass()
ConstraintLocation
getBeanClass in interface ConstraintLocationpublic Type typeOfAnnotatedElement()
ConstraintLocation
typeOfAnnotatedElement in interface ConstraintLocationpublic Member getMember()
ConstraintLocation
getMember in interface ConstraintLocationpublic ExecutableElement getExecutableElement()
public ElementType getElementType()
ConstraintLocationElementType on which the constraint is defined.
getElementType in interface ConstraintLocationElementType on which the constraint is defined.public Integer getParameterIndex()
null if
this location represents a executableElement return value.public Class<?> getParameterType()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||