public abstract class Tagger extends Object
TagContexts and TagContexts based on the current context.
This class returns builders that can be used to create the
implementation-dependent TagContexts.
Implementations may have different constraints and are free to convert tag contexts to their
own subtypes. This means callers cannot assume the current
context is the same instance as the one placed into scope.
| Constructor and Description |
|---|
Tagger() |
| Modifier and Type | Method and Description |
|---|---|
abstract TagContextBuilder |
currentBuilder()
Returns a new builder created from the current
TagContext. |
abstract TagContext |
empty()
Returns an empty
TagContext. |
abstract TagContextBuilder |
emptyBuilder()
Returns a new empty
Builder. |
abstract TagContext |
getCurrentTagContext()
Returns the current
TagContext. |
abstract TagContextBuilder |
toBuilder(TagContext tags)
Returns a builder based on this
TagContext. |
abstract Scope |
withTagContext(TagContext tags)
Enters the scope of code where the given
TagContext is in the current context and
returns an object that represents that scope. |
public abstract TagContext empty()
TagContext.TagContext.public abstract TagContext getCurrentTagContext()
TagContext.TagContext.public abstract TagContextBuilder emptyBuilder()
Builder.Builder.public abstract TagContextBuilder toBuilder(TagContext tags)
TagContext.TagContext.public abstract TagContextBuilder currentBuilder()
TagContext.TagContext.public abstract Scope withTagContext(TagContext tags)
TagContext is in the current context and
returns an object that represents that scope. The scope is exited when the returned object is
closed.tags - the TagContext to be set to the current context.TagContext is set to the current
context.