Package | Description |
---|---|
org.opendaylight.yangtools.yang.parser.rfc7950.antlr | |
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 . |
Modifier and Type | Method and Description |
---|---|
static <T> T |
SourceExceptionParser.parse(org.antlr.v4.runtime.Lexer lexer,
org.antlr.v4.runtime.Parser parser,
Supplier<T> parseMethod,
StatementSourceReference ref)
Use a Lexer/Parser pair extracting the parser's root item.
|
static <T> T |
SourceExceptionParser.parse(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Supplier<T> parseMethod,
StatementSourceReference ref)
Parse a Recognizer extracting its root item.
|
Modifier and Type | Method and Description |
---|---|
@NonNull StatementSourceReference |
StmtContext.getStatementSourceReference() |
Modifier and Type | Method and Description |
---|---|
static void |
InferenceException.throwIf(boolean expression,
@NonNull StatementSourceReference source,
@NonNull String format,
Object... args)
Throw an instance of this exception if an expression evaluates to true.
|
Modifier and Type | Class and Description |
---|---|
class |
DeclarationInTextSource
Reference of statement source present in textual source format.
|
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 |
---|---|
@NonNull StatementSourceReference |
SourceException.getSourceReference()
Return the reference to the source which caused this exception.
|
StatementSourceReference |
StatementWriter.ResumedStatement.getSourceReference()
Return statement source reference.
|
Modifier and Type | Method and Description |
---|---|
void |
StatementWriter.endStatement(@NonNull StatementSourceReference ref)
Ends current opened statement.
|
static ImplicitSubstatement |
ImplicitSubstatement.of(StatementSourceReference parentRef)
Create a new
ImplicitSubstatement . |
void |
StatementWriter.startStatement(int childId,
@NonNull QName name,
@Nullable String argument,
@NonNull StatementSourceReference ref)
Starts statement with supplied name and location in source.
|
static void |
SourceException.throwIf(boolean expression,
@NonNull StatementSourceReference source,
@NonNull String format,
Object... args)
Throw an instance of this exception if an expression evaluates to true.
|
static <T> T |
SourceException.throwIfNull(T obj,
@NonNull StatementSourceReference source,
@NonNull String format,
Object... args)
Throw an instance of this exception if an object is null.
|
static <T> T |
SourceException.unwrap(Optional<T> opt,
@NonNull StatementSourceReference source,
@NonNull String format,
Object... args)
Throw an instance of this exception if an optional is not present.
|
Constructor and Description |
---|
SourceException(@NonNull StatementSourceReference source,
@NonNull String format,
Object... args)
Create a new instance with the specified source and a formatted message.
|
SourceException(@NonNull StatementSourceReference source,
Throwable cause,
@NonNull String format,
Object... args)
Create a new instance with the specified source and a formatted message.
|
SourceException(@NonNull String message,
@NonNull StatementSourceReference source)
Create a new instance with the specified message and source.
|
SourceException(@NonNull String message,
@NonNull StatementSourceReference source,
Throwable cause)
Create a new instance with the specified message and source.
|
Modifier and Type | Method and Description |
---|---|
@NonNull StatementSourceReference |
StatementContextBase.getSourceReference() |
StatementSourceReference |
StatementContextBase.getStatementSourceReference()
Returns a reference to statement source.
|
Modifier and Type | Method and Description |
---|---|
<X,Y extends DeclaredStatement<X>,Z extends EffectiveStatement<X,Y>> |
StatementContextBase.createSubstatement(int offset,
StatementDefinitionContext<X,Y,Z> def,
StatementSourceReference ref,
String argument)
Create a new substatement at the specified offset.
|
Copyright © 2019 OpenDaylight. All rights reserved.