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 |
|---|---|
boolean |
equals(Object obj) |
Class<?> |
getBeanClass() |
ElementType |
getElementType() |
Method |
getMember() |
Integer |
getParameterIndex() |
Class<?> |
getParameterType() |
int |
hashCode() |
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 getMember()
getMember in interface ConstraintLocationpublic ElementType getElementType()
getElementType in interface ConstraintLocationpublic Integer getParameterIndex()
null if
this location represents a method return value.public Class<?> getParameterType()
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved