package org.opendaylight.mdsal.binding.generator.impl.reactor;
import org.opendaylight.yangtools.yang.model.api.stmt.AugmentEffectiveStatement;
-import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
/**
* Generator corresponding to a {@code augment} statement used as a child of a {@code module} statement.
super(statement, parent);
}
- @Override
- void loadTargetGenerator() {
- throw new UnsupportedOperationException();
- }
-
- void linkAugmentationTarget(final GeneratorContext context) {
- final SchemaNodeIdentifier path = statement().argument();
- final ModuleGenerator module = context.resolveModule(path.firstNodeIdentifier().getModule());
- setTargetGenerator(module.resolveSchemaNode(path));
+ void startLinkage(final GeneratorContext context) {
+ startLinkage(context.resolveModule(statement().argument().firstNodeIdentifier().getModule()));
}
}