public class TypeArgumentConstraintLocation extends Object implements ConstraintLocation
ConstraintLocation.ConstraintLocationKind
Modifier and Type | Method and Description |
---|---|
void |
appendTo(ExecutableParameterNameProvider parameterNameProvider,
PathImpl path)
Appends a node representing this location to the given property path.
|
boolean |
equals(Object o) |
Constrainable |
getConstrainable()
Returns the member represented by this location.
|
Class<?> |
getContainerClass() |
Class<?> |
getDeclaringClass()
Returns the class hosting this location.
|
ConstraintLocation |
getDelegate() |
ConstraintLocation.ConstraintLocationKind |
getKind()
Returns the nature of the constraint location.
|
ConstraintLocation |
getOuterDelegate() |
Type |
getTypeForValidatorResolution()
Returns the type to be used when resolving constraint validators for constraints at this location.
|
TypeVariable<?> |
getTypeParameter() |
Object |
getValue(Object parent)
Obtains the value of this location from the parent.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forClass, forCrossParameter, forField, forGetter, forParameter, forReturnValue, forTypeArgument
public Class<?> getDeclaringClass()
ConstraintLocation
getDeclaringClass
in interface ConstraintLocation
public Constrainable getConstrainable()
ConstraintLocation
getConstrainable
in interface ConstraintLocation
null
when this location represents a type.public TypeVariable<?> getTypeParameter()
public Type getTypeForValidatorResolution()
ConstraintLocation
getTypeForValidatorResolution
in interface ConstraintLocation
public Class<?> getContainerClass()
public void appendTo(ExecutableParameterNameProvider parameterNameProvider, PathImpl path)
ConstraintLocation
appendTo
in interface ConstraintLocation
public Object getValue(Object parent)
ConstraintLocation
AbstractPropertyConstraintLocation
but an
object array for a ParameterConstraintLocation
.getValue
in interface ConstraintLocation
public ConstraintLocation getDelegate()
public ConstraintLocation getOuterDelegate()
public ConstraintLocation.ConstraintLocationKind getKind()
ConstraintLocation
getKind
in interface ConstraintLocation
Copyright © 2007-2021 Red Hat, Inc. All Rights Reserved