public class ExecutableMetaData extends AbstractConstraintMetaData
Instances are retrieved by creating a ExecutableMetaData.Builder
and adding all required
ConstrainedExecutable
objects to it. Instances are read-only after
creation.
Identity is solely based on the method's name and parameter types, hence sets and similar collections of this type may only be created in the scope of one Java type.
Modifier and Type | Class and Description |
---|---|
static class |
ExecutableMetaData.Builder
Creates new
ExecutableMetaData instances. |
Modifier and Type | Method and Description |
---|---|
ExecutableDescriptorImpl |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the
descriptor model.
|
boolean |
equals(Object obj) |
Set<MetaConstraint<?>> |
getCrossParameterConstraints()
Returns the cross-parameter constraints declared for the represented
method or constructor.
|
ParameterMetaData |
getParameterMetaData(int parameterIndex)
Returns meta data for the specified parameter of the represented executable.
|
Class<?>[] |
getParameterTypes() |
ReturnValueMetaData |
getReturnValueMetaData() |
Set<String> |
getSignatures()
Returns the signature(s) of the method represented by this meta data object, based on the represented
executable's name and its parameter types.
|
ValidatableParametersMetaData |
getValidatableParametersMetaData() |
int |
hashCode() |
String |
toString() |
asDescriptors, getConstraints, getKind, getName, getType, isCascading, isConstrained, iterator, unwrapMode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ParameterMetaData getParameterMetaData(int parameterIndex)
parameterIndex
- the index of the parameternull
.public Class<?>[] getParameterTypes()
public Set<String> getSignatures()
public Set<MetaConstraint<?>> getCrossParameterConstraints()
null
.public ValidatableParametersMetaData getValidatableParametersMetaData()
public ReturnValueMetaData getReturnValueMetaData()
public ExecutableDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
ConstraintMetaData
defaultGroupSequenceRedefined
- Whether the bean hosting the represented element has a
redefined default group sequence or not.defaultGroupSequence
- The default group sequence of the bean hosting the represented
element.ElementDescriptor
.public String toString()
toString
in class AbstractConstraintMetaData
public int hashCode()
hashCode
in class AbstractConstraintMetaData
public boolean equals(Object obj)
equals
in class AbstractConstraintMetaData
Copyright © 2016 JBoss by Red Hat. All rights reserved.