@Beta public final class ImplicitSubstatement extends Object implements StatementSourceReference
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
StatementSource |
getStatementSource()
Returns source type.
|
int |
hashCode() |
static ImplicitSubstatement |
of(StatementSourceReference parentRef)
Create a new
ImplicitSubstatement . |
String |
toString()
Returns human readable representation of statement source.
|
public static ImplicitSubstatement of(StatementSourceReference parentRef)
ImplicitSubstatement
.parentRef
- Parent source referenceNullPointerException
- if parentRef is nullpublic StatementSource getStatementSource()
StatementSourceReference
getStatementSource
in interface StatementSourceReference
StatementSource.DECLARATION
if statement was explicitly declared in YANG model source,
StatementSource.CONTEXT
if statement was inferred.public String toString()
StatementSourceReference
Implementations of this interface should override StatementSourceReference.toString()
, since it may be used in error reporting
to provide context information for model designer to debug errors in its mode.
toString
in interface StatementSourceReference
toString
in class Object
Copyright © 2019 OpenDaylight. All rights reserved.