Modifier | Constructor and Description |
---|---|
private |
TagHelper() |
Modifier and Type | Method and Description |
---|---|
private static Set<Tag> |
_getAncestors(Tag tag,
boolean includeCurrent,
Set<Tag> accumulator) |
private static Set<Tag> |
_getDescendants(Tag tag,
boolean includeCurrent,
Set<Tag> accumulator) |
static Set<String> |
getAncestorNames(Tag tag,
boolean includeCurrent)
Retrieves all name of the ancestors of the current tag.
|
static Set<Tag> |
getAncestors(Tag tag,
boolean includeCurrent)
Retrieves all ancestors of the current tag.
|
static Set<String> |
getDescendantNames(Tag tag,
boolean includeCurrent)
Retrieves all name of the descendants (direct and non-direct children) of the current tag.
|
static Set<Tag> |
getDescendants(Tag tag,
boolean includeCurrent)
Retrieves all descendants (direct and non-direct children) of the current tag.
|
private TagHelper()
public static Set<Tag> getDescendants(Tag tag, boolean includeCurrent)
tag
- the current tagincludeCurrent
- true to include the current tag itselfprivate static Set<Tag> _getDescendants(Tag tag, boolean includeCurrent, Set<Tag> accumulator)
public static Set<String> getDescendantNames(Tag tag, boolean includeCurrent)
tag
- the current tagincludeCurrent
- true to include the current tag itselfpublic static Set<Tag> getAncestors(Tag tag, boolean includeCurrent)
tag
- the current tagincludeCurrent
- true to include the current tag itselfprivate static Set<Tag> _getAncestors(Tag tag, boolean includeCurrent, Set<Tag> accumulator)
public static Set<String> getAncestorNames(Tag tag, boolean includeCurrent)
tag
- the current tagincludeCurrent
- true to include the current tag itself