Class AbstractEffectiveDocumentedNodeWithStatus<A,​D extends DeclaredStatement<A>>

    • Constructor Detail

      • AbstractEffectiveDocumentedNodeWithStatus

        protected AbstractEffectiveDocumentedNodeWithStatus​(StmtContext<A,​D,​?> ctx)
        Constructor.
        Parameters:
        ctx - context of statement.
    • Method Detail

      • getUnknownSchemaNodes

        public final Collection<? extends UnknownSchemaNode> getUnknownSchemaNodes()
        Description copied from interface: DocumentedNode
        Returns unknown schema nodes which belongs to this instance. Default implementation returns an empty collection.
        Specified by:
        getUnknownSchemaNodes in interface DocumentedNode
        Returns:
        collection of unknown schema nodes defined under this node.
      • maskList

        protected static final @NonNull Object maskList​(ImmutableList<?> list)
        Utility method for squashing singleton lists into single objects. This is a CPU/mem trade-off, which we are usually willing to make: for the cost of an instanceof check we can save one object and re-create it when needed. The inverse operation is #unmaskSubstatements(Object)}.
        Parameters:
        list - list to mask
        Returns:
        Masked list
        Throws:
        NullPointerException - if list is null
      • unmaskSet

        protected static final <T> @NonNull ImmutableSet<? extends T> unmaskSet​(@NonNull Object masked,
                                                                                @NonNull Class<T> type)