crossParameterConstraints.addAll( constrainedExecutable.getCrossParameterConstraints() );
}
@Override
public ExecutableMetaData build() {
ExecutableElement executableElement = location.getExecutableElement();
ConstraintDeclarationException constraintDeclarationException = checkParameterConstraints();
if ( constraintDeclarationException == null ) {
constraintDeclarationException = checkReturnValueConfiguration();
}
return new ExecutableMetaData(
executableElement.getSimpleName(),
executableElement.getReturnType(),
executableElement.getParameterTypes(),
kind == ConstrainedElement.ConstrainedElementKind.CONSTRUCTOR ? ElementKind.CONSTRUCTOR : ElementKind.METHOD,
adaptOriginsAndImplicitGroups( getConstraints() ),
findParameterMetaData(),
adaptOriginsAndImplicitGroups( crossParameterConstraints ),
constraintDeclarationException,
getGroupConversions(),
isCascading(),
isConstrained,
executableElement.isGetterMethod()
);
}