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,
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() |
ElementType |
getElementType() |
ExecutableElement |
getExecutableElement() |
Member |
getMember() |
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, Integer parameterIndex)
public Class<?> getBeanClass()
getBeanClass in interface ConstraintLocationpublic Type typeOfAnnotatedElement()
ConstraintLocationtypeOfAnnotatedElement in interface ConstraintLocationpublic Member getMember()
getMember in interface ConstraintLocationpublic ExecutableElement getExecutableElement()
public ElementType getElementType()
getElementType in interface ConstraintLocationpublic Integer getParameterIndex()
null if
this location represents a executableElement return value.public Class<?> getParameterType()
Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved