| 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.
|
| Modifier and Type | Method and Description |
|---|---|
StatementSourceReference |
StmtContext.getStatementSourceReference() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 |
StatementWriter.ResumedStatement.getSourceReference()
Return statement source reference.
|
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,
org.opendaylight.yangtools.yang.common.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.
|
Copyright © 2018 OpenDaylight. All rights reserved.