Class NoopTags.NoopTagger

  • Enclosing class:
    NoopTags

    @Immutable
    private static final class NoopTags.NoopTagger
    extends Tagger
    • Field Detail

      • INSTANCE

        static final Tagger INSTANCE
    • Constructor Detail

      • NoopTagger

        private NoopTagger()
    • Method Detail

      • empty

        public TagContext empty()
        Description copied from class: Tagger
        Returns an empty TagContext.
        Specified by:
        empty in class Tagger
        Returns:
        an empty TagContext.
      • getCurrentTagContext

        public TagContext getCurrentTagContext()
        Description copied from class: Tagger
        Returns the current TagContext.
        Specified by:
        getCurrentTagContext in class Tagger
        Returns:
        the current TagContext.
      • currentBuilder

        public TagContextBuilder currentBuilder()
        Description copied from class: Tagger
        Returns a new builder created from the current TagContext.
        Specified by:
        currentBuilder in class Tagger
        Returns:
        a new builder created from the current TagContext.
      • withTagContext

        public Scope withTagContext​(TagContext tags)
        Description copied from class: Tagger
        Enters the scope of code where the given TagContext is in the current context (replacing the previous TagContext) and returns an object that represents that scope. The scope is exited when the returned object is closed.
        Specified by:
        withTagContext in class Tagger
        Parameters:
        tags - the TagContext to be set to the current context.
        Returns:
        an object that defines a scope where the given TagContext is set to the current context.