Class ImplicitSubstatement
java.lang.Object
org.opendaylight.yangtools.yang.parser.spi.source.StatementSourceReference
org.opendaylight.yangtools.yang.parser.spi.source.ImplicitSubstatement
- All Implemented Interfaces:
Immutable
An implicit sub-statement, which is implied to be always present in its parent, even if it does not appear in model
source.
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.model.api.meta.DeclarationReferenceReturns theDeclarationReferenceassociated with this reference, if available.booleaninthashCode()static ImplicitSubstatementof(StatementSourceReference parentRef) Create a newImplicitSubstatement.org.opendaylight.yangtools.yang.model.api.meta.StatementOriginReturns theStatementOriginassociated with this reference.toString()Returns human readable representation of statement source.
-
Method Details
-
of
Create a newImplicitSubstatement.- Parameters:
parentRef- Parent source reference- Returns:
- A new reference
- Throws:
NullPointerException- if parentRef is null
-
statementOrigin
public org.opendaylight.yangtools.yang.model.api.meta.StatementOrigin statementOrigin()Description copied from class:StatementSourceReferenceReturns theStatementOriginassociated with this reference.- Specified by:
statementOriginin classStatementSourceReference- Returns:
StatementOrigin.DECLARATIONif statement was explicitly declared in YANG model source,StatementOrigin.CONTEXTif statement was inferred.
-
declarationReference
public org.opendaylight.yangtools.yang.model.api.meta.DeclarationReference declarationReference()Description copied from class:StatementSourceReferenceReturns theDeclarationReferenceassociated with this reference, if available.- Specified by:
declarationReferencein classStatementSourceReference- Returns:
- A
DeclarationReferenceor null.
-
hashCode
public int hashCode() -
equals
-
toString
Description copied from class:StatementSourceReferenceReturns human readable representation of statement source.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.- Specified by:
toStringin classStatementSourceReference- Returns:
- human readable representation of statement source.
-