Top Fields Constructors Methods
com.vladsch.flexmark.util.ast

public Class NodeClassifierVisitor

extends NodeVisitorBase
implements NodeTracker
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.util.ast.NodeTracker
Imports
com.vladsch.flexmark.util.collection.CopyOnWriteRef, .OrderedMap, .OrderedSet, org.jetbrains.annotations.NotNull, java.util.*

Field Summary

Modifier and TypeField and Description
private final ClassifyingNodeTracker
private static final BitSet
private final OrderedMap<Class<?>, Set<Class<?>>>
private final OrderedSet<Class<?>>
private boolean
private final CopyOnWriteRef<BitSet>
private final Stack<BitSet>
private final HashMap<Integer, BitSet>

Constructor Summary

AccessConstructor and Description
public
NodeClassifierVisitor(Map<Class<? extends Node>, Set<Class<?>>> exclusionMap)

Method Summary

Modifier and TypeMethod and Description
public @NotNull ClassifyingNodeTracker
public void
public void
public void
public void
public void
public void
pack-priv void
pack-priv void
pack-priv boolean
updateNodeAncestry(Node node, CopyOnWriteRef<BitSet> nodeAncestryBitSet)

public void
public void
visitChildren(@NotNull Node
the parent node whose children should be visited
parent
)

Visit the child nodes.

Inherited from com.vladsch.flexmark.util.ast.NodeVisitorBase:
visitvisitChildren

Field Detail

classifyingNodeTrackerback to summary
private final ClassifyingNodeTracker classifyingNodeTracker
EMPTY_SETback to summary
private static final BitSet EMPTY_SET
exclusionMapback to summary
private final OrderedMap<Class<?>, Set<Class<?>>> exclusionMap
exclusionSetback to summary
private final OrderedSet<Class<?>> exclusionSet
isClassificationDoneback to summary
private boolean isClassificationDone
nodeAncestryBitSetback to summary
private final CopyOnWriteRef<BitSet> nodeAncestryBitSet
nodeAncestryBitSetStackback to summary
private final Stack<BitSet> nodeAncestryBitSetStack
nodeAncestryMapback to summary
private final HashMap<Integer, BitSet> nodeAncestryMap

Constructor Detail

NodeClassifierVisitorback to summary
public NodeClassifierVisitor(Map<Class<? extends Node>, Set<Class<?>>> exclusionMap)

Method Detail

classifyback to summary
public @NotNull ClassifyingNodeTracker classify(@NotNull Node node)
Annotations
@NotNull
nodeAddedback to summary
public void nodeAdded(@NotNull Node node)
Annotations
@Override
nodeAddedWithChildrenback to summary
public void nodeAddedWithChildren(@NotNull Node node)
Annotations
@Override
nodeAddedWithDescendantsback to summary
public void nodeAddedWithDescendants(@NotNull Node node)
Annotations
@Override
nodeRemovedback to summary
public void nodeRemoved(@NotNull Node node)
Annotations
@Override
nodeRemovedWithChildrenback to summary
public void nodeRemovedWithChildren(@NotNull Node node)
Annotations
@Override
nodeRemovedWithDescendantsback to summary
public void nodeRemovedWithDescendants(@NotNull Node node)
Annotations
@Override
popNodeAncestryback to summary
pack-priv void popNodeAncestry()
pushNodeAncestryback to summary
pack-priv void pushNodeAncestry()
updateNodeAncestryback to summary
pack-priv boolean updateNodeAncestry(Node node, CopyOnWriteRef<BitSet> nodeAncestryBitSet)
visitback to summary
public void visit(@NotNull Node node)
Annotations
@Override
visitChildrenback to summary
public void visitChildren(@NotNull Node parent)

Visit the child nodes.

Parameters
parent:@NotNull Node

the parent node whose children should be visited

Annotations
@Override