|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.metadata.location.MethodConstraintLocation
public class MethodConstraintLocation
A ConstraintLocation implementation that represents a method
parameter or return value.
| Constructor Summary | |
|---|---|
MethodConstraintLocation(java.lang.reflect.Method method)
|
|
MethodConstraintLocation(java.lang.reflect.Method method,
int parameterIndex)
Creates a new MethodConstraintLocation. |
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getBeanClass()
|
java.lang.reflect.Method |
getMethod()
|
java.lang.Integer |
getParameterIndex()
The parameter index of this constraint location or null if
this location represents a method return value. |
java.lang.String |
toString()
|
java.lang.reflect.Type |
typeOfAnnotatedElement()
Returns the type of the element at this constraint location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodConstraintLocation(java.lang.reflect.Method method)
public MethodConstraintLocation(java.lang.reflect.Method method,
int parameterIndex)
MethodConstraintLocation.
method - The method of the location to be created.parameterIndex - The parameter index of the location to be created.| Method Detail |
|---|
public java.lang.Class<?> getBeanClass()
getBeanClass in interface ConstraintLocationpublic java.lang.reflect.Type typeOfAnnotatedElement()
ConstraintLocation
typeOfAnnotatedElement in interface ConstraintLocationpublic java.lang.reflect.Method getMethod()
public java.lang.Integer getParameterIndex()
null if
this location represents a method return value.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||