public class MethodConstraintLocation extends Object implements ConstraintLocation
ConstraintLocation implementation that represents a method
parameter or return value.| Constructor and Description |
|---|
MethodConstraintLocation(Method method) |
MethodConstraintLocation(Method method,
int parameterIndex)
Creates a new
MethodConstraintLocation. |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getBeanClass() |
Method |
getMethod() |
Integer |
getParameterIndex()
The parameter index of this constraint location or
null if
this location represents a method return value. |
String |
toString() |
Type |
typeOfAnnotatedElement()
Returns the type of the element at this constraint location.
|
public MethodConstraintLocation(Method method)
public MethodConstraintLocation(Method method, int parameterIndex)
MethodConstraintLocation.method - The method of the location to be created.parameterIndex - The parameter index of the location to be created.public Class<?> getBeanClass()
getBeanClass in interface ConstraintLocationpublic Type typeOfAnnotatedElement()
ConstraintLocationtypeOfAnnotatedElement in interface ConstraintLocationpublic Method getMethod()
public Integer getParameterIndex()
null if
this location represents a method return value.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.