Class UnknownEffectiveStatementBase<A,​D extends UnknownStatement<A>>

    • Method Detail

      • isAugmenting

        @Deprecated
        public boolean isAugmenting()
        Deprecated.
        Description copied from interface: CopyableNode
        Returns true if this node was added by augmentation, otherwise returns false.
        Specified by:
        isAugmenting in interface CopyableNode
        Returns:
        true if this node was added by augmentation, otherwise returns false
      • getNodeType

        public QName getNodeType()
        Description copied from interface: UnknownSchemaNode
        Returns QName instance with the name of the unknown node.
        Specified by:
        getNodeType in interface UnknownSchemaNode
        Returns:
        QName with name the name of the unknown node.
      • isAddedByUses

        @Deprecated
        public boolean isAddedByUses()
        Deprecated.
        Description copied from interface: AddedByUsesAware
        Returns true if this node was added by uses statement, otherwise returns false.
        Specified by:
        isAddedByUses in interface AddedByUsesAware
        Returns:
        true if this node was added by uses statement, otherwise returns false
      • 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)