Class TaggerImpl


  • public final class TaggerImpl
    extends Tagger
    Implementation of Tagger.
    • Method Detail

      • empty

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

        public TagMapImpl 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.