java.lang.Object
org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference
org.opendaylight.yangtools.yang.parser.spi.source.ImplicitSubstatement
All Implemented Interfaces:
Immutable

@Beta public final class ImplicitSubstatement extends org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference
An implicit sub-statement, which is implied to be always present in its parent, even if it does not appear in model source.
  • Method Details

    • of

      public static ImplicitSubstatement of(org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference parentRef)
      Create a new ImplicitSubstatement.
      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()
      Specified by:
      statementOrigin in class org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference
    • declarationReference

      public org.opendaylight.yangtools.yang.model.api.meta.DeclarationReference declarationReference()
      Specified by:
      declarationReference in class org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in class org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference