public class ParameterConstraintLocation extends java.lang.Object implements ConstraintLocation
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(java.lang.Object obj) |
java.lang.Class<?> |
getDeclaringClass()
Returns the class hosting this location.
|
int |
getIndex() |
java.lang.reflect.Member |
getMember()
Returns the member represented by this location.
|
java.lang.reflect.Type |
getTypeForValidatorResolution()
Returns the type to be used when resolving constraint validators for constraints at this location.
|
java.lang.Object |
getValue(java.lang.Object parent)
Obtains the value of this location from the parent.
|
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forClass, forCrossParameter, forField, forGetter, forGetter, forParameter, forReturnValue, forTypeArgument
public java.lang.Class<?> getDeclaringClass()
ConstraintLocation
getDeclaringClass
in interface ConstraintLocation
public java.lang.reflect.Member getMember()
ConstraintLocation
getMember
in interface ConstraintLocation
null
when this location represents a type.public java.lang.reflect.Type getTypeForValidatorResolution()
ConstraintLocation
getTypeForValidatorResolution
in interface ConstraintLocation
public int getIndex()
public void appendTo(ExecutableParameterNameProvider parameterNameProvider, PathImpl path)
ConstraintLocation
appendTo
in interface ConstraintLocation
public java.lang.Object getValue(java.lang.Object parent)
ConstraintLocation
FieldConstraintLocation
or GetterConstraintLocation
but an
object array for a ParameterConstraintLocation
.getValue
in interface ConstraintLocation
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved