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.
|
String |
getIdentifier()
Returns an identifier for this meta data object, based on the represented
executable's name and its parameter types.
|
ParameterMetaData |
getParameterMetaData(int parameterIndex)
Returns meta data for the specified parameter of the represented executable.
|
Class<?>[] |
getParameterTypes() |
ReturnValueMetaData |
getReturnValueMetaData() |
ValidatableParametersMetaData |
getValidatableParametersMetaData() |
int |
hashCode() |
String |
toString() |
asDescriptors, getConstraints, getKind, getName, getType, isCascading, isConstrained, iterator, requiresUnwrappingpublic ParameterMetaData getParameterMetaData(int parameterIndex)
parameterIndex - the index of the parameternull.public Class<?>[] getParameterTypes()
public String getIdentifier()
public Set<MetaConstraint<?>> getCrossParameterConstraints()
null.public ValidatableParametersMetaData getValidatableParametersMetaData()
public ReturnValueMetaData getReturnValueMetaData()
public ExecutableDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
ConstraintMetaDatadefaultGroupSequenceRedefined - 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 AbstractConstraintMetaDatapublic int hashCode()
hashCode in class AbstractConstraintMetaDatapublic boolean equals(Object obj)
equals in class AbstractConstraintMetaDataCopyright © 2009-2016 Oracle Corporation. All Rights Reserved.