public class ExecutableConstraintLocation extends Object implements ConstraintLocation
ConstraintLocation
implementation that represents a method or constructor.
parameter or return value.Constructor and Description |
---|
ExecutableConstraintLocation(ExecutableElement executableElement) |
ExecutableConstraintLocation(ExecutableElement executableElement,
Integer parameterIndex) |
ExecutableConstraintLocation(Method method) |
ExecutableConstraintLocation(Method method,
Integer parameterIndex)
Creates a new
ExecutableConstraintLocation . |
Modifier and Type | Method and Description |
---|---|
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.
|
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)
public Class<?> getBeanClass()
ConstraintLocation
getBeanClass
in interface ConstraintLocation
public Type typeOfAnnotatedElement()
ConstraintLocation
typeOfAnnotatedElement
in interface ConstraintLocation
public Member getMember()
ConstraintLocation
getMember
in interface ConstraintLocation
public ExecutableElement getExecutableElement()
public ElementType getElementType()
ConstraintLocation
ElementType
on which the constraint is defined.getElementType
in interface ConstraintLocation
ElementType
on which the constraint is defined.public Integer getParameterIndex()
null
if
this location represents a executableElement return value.public Class<?> getParameterType()
Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved