Package com.vladsch.flexmark.util.ast
Class NodeRepository<T>
java.lang.Object
com.vladsch.flexmark.util.ast.NodeRepository<T>
- Direct Known Subclasses:
AbbreviationRepository
,EnumeratedReferenceRepository
,FootnoteRepository
,MacroDefinitionRepository
,ReferenceRepository
,ZzzzzzRepository
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(@NotNull Object o) boolean
entrySet()
boolean
abstract @NotNull DataKey
<? extends NodeRepository<T>> getFromRaw
(@NotNull CharSequence rawKey) getReferencedElements
(Node parent) @NotNull Collection
<T> int
hashCode()
boolean
isEmpty()
keySet()
@NotNull String
normalizeKey
(@NotNull CharSequence key) void
putRawKey
(@NotNull CharSequence key, T t) int
size()
static <T> boolean
transferReferences
(@NotNull NodeRepository<T> destination, @NotNull NodeRepository<T> included, boolean onlyIfUndefined, @Nullable Map<String, String> referenceIdMap) values()
protected final void
visitNodes
(@NotNull Node parent, @NotNull Consumer<Node> runnable, @NotNull Class<? extends Node>... classes) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
nodeList
-
nodeMap
-
keepType
-
-
Constructor Details
-
NodeRepository
-
-
Method Details
-
getDataKey
-
getKeepDataKey
-
getReferencedElements
-
visitNodes
-
normalizeKey
-
getFromRaw
-
putRawKey
-
getValues
-
transferReferences
public static <T> boolean transferReferences(@NotNull @NotNull NodeRepository<T> destination, @NotNull @NotNull NodeRepository<T> included, boolean onlyIfUndefined, @Nullable @Nullable Map<String, String> referenceIdMap) -
put
-
putAll
-
remove
-
clear
public void clear() -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
T>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
T>
-
get
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode()
-