public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
cascadingMetaDataBuilder, constraints, source, typeArgumentConstraints
Constructor and Description |
---|
ConstrainedParameter(ConfigurationSource source,
java.lang.reflect.Executable executable,
java.lang.reflect.Type type,
int index) |
ConstrainedParameter(ConfigurationSource source,
java.lang.reflect.Executable executable,
java.lang.reflect.Type type,
int index,
java.util.Set<MetaConstraint<?>> constraints,
java.util.Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new parameter meta data object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.reflect.Executable |
getExecutable() |
int |
getIndex() |
java.lang.reflect.Type |
getType() |
int |
hashCode() |
ConstrainedParameter |
merge(ConstrainedParameter other)
Creates a new constrained parameter object by merging this and the given
other parameter.
|
java.lang.String |
toString() |
getCascadingMetaDataBuilder, getConstraints, getKind, getSource, getTypeArgumentConstraints, isConstrained, iterator
public ConstrainedParameter(ConfigurationSource source, java.lang.reflect.Executable executable, java.lang.reflect.Type type, int index)
public ConstrainedParameter(ConfigurationSource source, java.lang.reflect.Executable executable, java.lang.reflect.Type type, int index, java.util.Set<MetaConstraint<?>> constraints, java.util.Set<MetaConstraint<?>> typeArgumentConstraints, CascadingMetaDataBuilder cascadingMetaDataBuilder)
source
- The source of meta data.executable
- The executable of the represented method parameter.type
- the parameter typeindex
- the index of the parameterconstraints
- The constraints of the represented method parameter, if
any.typeArgumentConstraints
- Type arguments constraints, if any.cascadingMetaDataBuilder
- The cascaded validation metadata for this element and its container elements.public java.lang.reflect.Type getType()
public java.lang.reflect.Executable getExecutable()
public int getIndex()
public ConstrainedParameter merge(ConstrainedParameter other)
other
- The parameter to merge.public java.lang.String toString()
toString
in class AbstractConstrainedElement
public int hashCode()
hashCode
in class AbstractConstrainedElement
public boolean equals(java.lang.Object obj)
equals
in class AbstractConstrainedElement
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved