| 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 |
|---|---|
@NonNull StatementSourceReference |
StmtContext.getStatementSourceReference()
Returns a reference to statement source.
|
| 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 |
|---|---|
StatementSourceReference |
StatementWriter.ResumedStatement.getSourceReference()
Return statement source reference.
|
@NonNull StatementSourceReference |
SourceException.getSourceReference()
Return the reference to the source which caused this exception.
|
| 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 org.opendaylight.yangtools.yang.common.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.
|
Copyright © 2020 OpenDaylight. All rights reserved.