public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKind
cascadingMetaDataBuilder, constraints, source, typeArgumentConstraints
Constructor and Description |
---|
ConstrainedParameter(ConfigurationSource source,
Executable executable,
Type type,
int index) |
ConstrainedParameter(ConfigurationSource source,
Executable executable,
Type type,
int index,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new parameter meta data object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Executable |
getExecutable() |
int |
getIndex() |
Type |
getType() |
int |
hashCode() |
ConstrainedParameter |
merge(ConstrainedParameter other)
Creates a new constrained parameter object by merging this and the given
other parameter.
|
String |
toString() |
getCascadingMetaDataBuilder, getConstraints, getKind, getSource, getTypeArgumentConstraints, isConstrained, iterator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ConstrainedParameter(ConfigurationSource source, Executable executable, Type type, int index)
public ConstrainedParameter(ConfigurationSource source, Executable executable, Type type, int index, Set<MetaConstraint<?>> constraints, 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 Type getType()
public Executable getExecutable()
public int getIndex()
public ConstrainedParameter merge(ConstrainedParameter other)
other
- The parameter to merge.public String toString()
toString
in class AbstractConstrainedElement
public int hashCode()
hashCode
in class AbstractConstrainedElement
public boolean equals(Object obj)
equals
in class AbstractConstrainedElement
Copyright © 2021 JBoss by Red Hat. All rights reserved.