import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.parser.api.ImportResolutionMode;
import org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase;
import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
import org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupportBundle;
* @return A new {@link BuildAction}.
*/
public @NonNull BuildAction newBuild() {
- return newBuild(ImportResolutionMode.DEFAULT);
- }
-
- /**
- * Start a new reactor build using the specified statement parser mode and enabling all features and deviations.
- *
- * @param statementParserMode Parser mode to use
- * @return A new {@link BuildAction}.
- * @throws NullPointerException if statementParserMode is null
- */
- public @NonNull BuildAction newBuild(final ImportResolutionMode statementParserMode) {
- return new BuildAction(supportedTerminology, supportedValidation, requireNonNull(statementParserMode));
+ return new BuildAction(supportedTerminology, supportedValidation);
}
public static class Builder implements org.opendaylight.yangtools.concepts.Builder<CrossSourceStatementReactor> {
private boolean modulesDeviatedByModulesSet = false;
BuildAction(final ImmutableMap<ModelProcessingPhase, StatementSupportBundle> supportedTerminology,
- final ImmutableMap<ValidationBundleType, Collection<?>> supportedValidation,
- final ImportResolutionMode statementParserMode) {
- this.context = new BuildGlobalContext(supportedTerminology, supportedValidation, statementParserMode);
+ final ImmutableMap<ValidationBundleType, Collection<?>> supportedValidation) {
+ this.context = new BuildGlobalContext(supportedTerminology, supportedValidation);
}
/**