public class ConstrainedParameter extends AbstractConstrainedElement
ConstrainedElement.ConstrainedElementKindcascadingMetaDataBuilder, 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, iteratorclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 AbstractConstrainedElementpublic int hashCode()
hashCode in class AbstractConstrainedElementpublic boolean equals(Object obj)
equals in class AbstractConstrainedElementCopyright © 2019 JBoss by Red Hat. All rights reserved.