From c16177dbef202fc36833c3ab86a9f5fa59c868ba Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sat, 25 Jan 2020 12:33:22 +0100 Subject: [PATCH] Expand reactor documentation a bit The reactor can use every sliver of documentation it can get, provide at least a few words. Change-Id: I2ccfa558f2ba4bfa63505308f6e4131e8634ab4e Signed-off-by: Robert Varga (cherry picked from commit 9cb8b0439ed2c70053719685ad86fb0e26714374) --- .../parser/stmt/reactor/StatementContextBase.java | 7 +++++++ .../yang/parser/spi/meta/StatementSupport.java | 15 +++++---------- .../yang/parser/spi/meta/StmtContext.java | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java b/yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java index 8e6d1ea903..abf79fde20 100644 --- a/yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java +++ b/yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java @@ -67,6 +67,13 @@ import org.opendaylight.yangtools.yang.parser.stmt.reactor.NamespaceBehaviourWit import org.slf4j.Logger; import org.slf4j.LoggerFactory; +/** + * Core reactor statement implementation of {@link Mutable}. + * + * @param Argument type + * @param Declared Statement representation + * @param Effective Statement representation + */ public abstract class StatementContextBase, E extends EffectiveStatement> extends NamespaceStorageSupport implements Mutable, ResumedStatement { /** diff --git a/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StatementSupport.java b/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StatementSupport.java index 22e20df65c..f9463a0f2f 100644 --- a/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StatementSupport.java +++ b/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StatementSupport.java @@ -5,7 +5,6 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.yangtools.yang.parser.spi.meta; import com.google.common.annotations.Beta; @@ -24,16 +23,12 @@ import org.opendaylight.yangtools.yang.parser.spi.source.SourceException; * Support for processing concrete YANG statement. * *

- * This interface is intended to be implemented by developers, which want to - * introduce support of statement to parser. Consider subclassing - * {@link AbstractStatementSupport} for easier implementation of this interface. + * This interface is intended to be implemented by developers, which want to introduce support of statement to parser. + * Consider subclassing {@link AbstractStatementSupport} for easier implementation of this interface. * - * @param - * Argument type - * @param - * Declared Statement representation - * @param - * Effective Statement representation + * @param Argument type + * @param Declared Statement representation + * @param Effective Statement representation */ public interface StatementSupport, E extends EffectiveStatement> extends StatementDefinition, StatementFactory { diff --git a/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java b/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java index 73e05172f2..e8269a3ca7 100644 --- a/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java +++ b/yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java @@ -29,6 +29,13 @@ import org.opendaylight.yangtools.yang.model.api.meta.StatementSource; import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier; import org.opendaylight.yangtools.yang.parser.spi.source.StatementSourceReference; +/** + * An inference context associated with an instance of a statement. + * + * @param Argument type + * @param Declared Statement representation + * @param Effective Statement representation + */ public interface StmtContext, E extends EffectiveStatement> { /** * Returns the origin of the statement. @@ -202,6 +209,13 @@ public interface StmtContext, E extends Effect */ @NonNull YangVersion getRootVersion(); + /** + * An mutable view of an inference context associated with an instance of a statement. + * + * @param Argument type + * @param Declared Statement representation + * @param Effective Statement representation + */ interface Mutable, E extends EffectiveStatement> extends StmtContext { -- 2.36.6