| Package | Description | 
|---|---|
| org.opendaylight.yangtools.yang.parser.spi.meta | 
 Provides base abstract classes, interfaces and common implementation used by the statement parser. 
 | 
| org.opendaylight.yangtools.yang.parser.spi.source | 
 Provides API necessary for the processing of statement sources. 
 | 
| org.opendaylight.yangtools.yang.parser.stmt.reactor | 
 Contains the implementation of the parser reactor
  
CrossSourceStatementReactor. | 
| org.opendaylight.yangtools.yang.parser.stmt.rfc6020 | 
 Contains implementation of statement supports for Rfc6020 statements and
 implementation of declared statements. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
StatementSourceReference | 
StmtContext.getStatementSourceReference()  | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<StatementContextBase<?,?,?>> | 
AbstractStatementSupport.beforeSubStatementCreated(StmtContext.Mutable<?,?,?> stmt,
                         int offset,
                         StatementDefinitionContext<?,?,?> def,
                         StatementSourceReference ref,
                         String argument)  | 
Optional<StatementContextBase<?,?,?>> | 
StatementSupport.beforeSubStatementCreated(StmtContext.Mutable<?,?,?> stmt,
                         int offset,
                         StatementDefinitionContext<?,?,?> def,
                         StatementSourceReference ref,
                         String argument)
Invoked before a substatement with specified offset, definition,
 reference and argument is created and added to parent statement. 
 | 
static void | 
InferenceException.throwIf(boolean expression,
       StatementSourceReference source,
       String format,
       Object... args)
Throw an instance of this exception if an expression evaluates to true. 
 | 
| Constructor and Description | 
|---|
InferenceException(StatementSourceReference source,
                  String format,
                  Object... args)  | 
InferenceException(String message,
                  StatementSourceReference source)  | 
InferenceException(String message,
                  StatementSourceReference source,
                  Throwable cause)  | 
InvalidSubstatementException(StatementSourceReference source,
                            String format,
                            Object... args)  | 
InvalidSubstatementException(String message,
                            StatementSourceReference source)  | 
InvalidSubstatementException(String message,
                            StatementSourceReference source,
                            Throwable cause)  | 
MissingSubstatementException(StatementSourceReference source,
                            String format,
                            Object... args)  | 
MissingSubstatementException(String message,
                            StatementSourceReference source)  | 
MissingSubstatementException(String message,
                            StatementSourceReference source,
                            Throwable cause)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
DeclarationInTextSource
Reference of statement source present in textual source format
 Utility implementation of  
StatementSourceReference for textual sources,
 this is prefered StatementSourceReference for implementations
 of YANG / YIN statement stream sources. | 
class  | 
ImplicitSubstatement
An implicit sub-statement, which is implied to be always present in its parent, even if it does not appear
 in model source. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
StatementSourceReference | 
SourceException.getSourceReference()
Return the reference to the source which caused this exception. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
StatementWriter.endStatement(StatementSourceReference ref)
Ends current opened statement. 
 | 
static ImplicitSubstatement | 
ImplicitSubstatement.of(StatementSourceReference parentRef)
Create a new  
ImplicitSubstatement. | 
void | 
StatementWriter.startStatement(int childId,
              QName name,
              String argument,
              StatementSourceReference ref)
Starts statement with supplied name and location in source. 
 | 
static void | 
SourceException.throwIf(boolean expression,
       StatementSourceReference source,
       String format,
       Object... args)
Throw an instance of this exception if an expression evaluates to true. 
 | 
static <T> T | 
SourceException.throwIfNull(T obj,
           StatementSourceReference source,
           String format,
           Object... args)
Throw an instance of this exception if an object is null. 
 | 
static <T> T | 
SourceException.unwrap(Optional<T> opt,
      StatementSourceReference source,
      String format,
      Object... args)
Throw an instance of this exception if an optional is not present. 
 | 
| Constructor and Description | 
|---|
SourceException(StatementSourceReference source,
               String format,
               Object... args)
Create a new instance with the specified source and a formatted message. 
 | 
SourceException(StatementSourceReference source,
               Throwable cause,
               String format,
               Object... args)
Create a new instance with the specified source and a formatted message. 
 | 
SourceException(String message,
               StatementSourceReference source)
Create a new instance with the specified message and source. 
 | 
SourceException(String message,
               StatementSourceReference source,
               Throwable cause)
Create a new instance with the specified message and source. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
StatementSourceReference | 
StatementContextBase.getStatementSourceReference()  | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<StatementContextBase<?,?,?>> | 
StatementDefinitionContext.beforeSubStatementCreated(StmtContext.Mutable<?,?,?> stmt,
                         int offset,
                         StatementDefinitionContext<?,?,?> def,
                         StatementSourceReference ref,
                         String argument)  | 
<CA,CD extends DeclaredStatement<CA>,CE extends EffectiveStatement<CA,CD>> | 
StatementContextBase.createSubstatement(int offset,
                  StatementDefinitionContext<CA,CD,CE> def,
                  StatementSourceReference ref,
                  String argument)
Create a new substatement at the specified offset. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<StatementContextBase<?,?,?>> | 
ChoiceStatementImpl.Definition.beforeSubStatementCreated(StmtContext.Mutable<?,?,?> stmt,
                         int offset,
                         StatementDefinitionContext<?,?,?> def,
                         StatementSourceReference ref,
                         String argument)  | 
static String | 
Utils.stringFromStringContext(YangStatementParser.ArgumentContext context,
                       StatementSourceReference ref)  | 
static String | 
Utils.stringFromStringContext(YangStatementParser.ArgumentContext context,
                       YangVersion yangVersion,
                       StatementSourceReference ref)  | 
Copyright © 2018 OpenDaylight. All rights reserved.