@Override
public ElementDescriptor asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) {
if ( super.getKind() == ConstraintMetaDataKind.METHOD ) {
return new ExecutableDescriptorImpl(
getType(),
getName(),
asDescriptors( getConstraints() ),
returnValueAsDescriptor( defaultGroupSequenceRedefined, defaultGroupSequence ),
parametersAsDescriptors( defaultGroupSequenceRedefined, defaultGroupSequence ),
defaultGroupSequenceRedefined,
defaultGroupSequence
);
}
else {
return new ExecutableDescriptorImpl(
getType(),
asDescriptors( getConstraints() ),
returnValueAsDescriptor( defaultGroupSequenceRedefined, defaultGroupSequence ),
parametersAsDescriptors( defaultGroupSequenceRedefined, defaultGroupSequence ),
defaultGroupSequenceRedefined,