Package com.vladsch.flexmark.util.ast
Class ClassifyingNodeTracker
java.lang.Object
com.vladsch.flexmark.util.ast.ClassifyingNodeTracker
- All Implemented Interfaces:
NodeTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull OrderedMap<Class<?>,
Set<Class<?>>> private final @NotNull OrderedSet<Class<?>>
private final @Nullable NodeTracker
protected final @NotNull ClassificationBag<Class<?>,
Node> -
Constructor Summary
ConstructorsConstructorDescriptionClassifyingNodeTracker
(@Nullable NodeTracker host, @NotNull Map<Class<? extends Node>, Set<Class<?>>> exclusionMap) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addNodes
(@NotNull ReversiblePeekingIterable<Node> nodes) <X> @NotNull ReversibleIterable<X>
getCategoryItems
(@NotNull Class<? extends X> nodeClass, @NotNull Set<Class<?>> classes) @NotNull OrderedMap<Class<?>,
Set<Class<?>>> @NotNull OrderedSet<Class<?>>
@NotNull OrderedSet<Node>
getItems()
@NotNull ClassificationBag<Class<?>,
Node> void
void
nodeAddedWithChildren
(@NotNull Node node) void
nodeAddedWithDescendants
(@NotNull Node node) void
nodeRemoved
(@NotNull Node node) void
nodeRemovedWithChildren
(@NotNull Node node) void
nodeRemovedWithDescendants
(@NotNull Node node) private void
removeNodes
(@NotNull ReversiblePeekingIterable<Node> nodes) private void
validateLinked
(Node node) private void
validateUnlinked
(@NotNull Node node)
-
Field Details
-
nodeClassifier
-
host
-
exclusionMap
-
exclusionSet
-
nodeAncestryMap
-
-
Constructor Details
-
ClassifyingNodeTracker
-
-
Method Details
-
getExclusionMap
-
getNodeAncestryMap
-
getExclusionSet
-
getNodeClassifier
-
validateLinked
-
nodeAdded
- Specified by:
nodeAdded
in interfaceNodeTracker
-
nodeAddedWithChildren
- Specified by:
nodeAddedWithChildren
in interfaceNodeTracker
-
nodeAddedWithDescendants
- Specified by:
nodeAddedWithDescendants
in interfaceNodeTracker
-
addNodes
-
validateUnlinked
-
nodeRemoved
- Specified by:
nodeRemoved
in interfaceNodeTracker
-
nodeRemovedWithChildren
- Specified by:
nodeRemovedWithChildren
in interfaceNodeTracker
-
nodeRemovedWithDescendants
- Specified by:
nodeRemovedWithDescendants
in interfaceNodeTracker
-
removeNodes
-
getItems
-
getCategoryItems
@NotNull public <X> @NotNull ReversibleIterable<X> getCategoryItems(@NotNull @NotNull Class<? extends X> nodeClass, @NotNull @NotNull Set<Class<?>> classes)
-