public class PackagePrefixTree extends PrefixTree<String,PackageInfoExt>
| Modifier and Type | Class and Description |
|---|---|
static class |
PackagePrefixTree.PackageKeySequence |
nodeFactory, rootNode| Constructor and Description |
|---|
PackagePrefixTree()
Create empty prefix tree with no value in the root node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String packageName,
PackageInfoExt value) |
void |
compressTree()
Compress tree using default predicate and compressor:
- parent and child nodes are contatenated if only one child is present AND there is no value in parent node set
- concatenation means that a value of new node is taken from a child, while new node's key is concatenation of
parent.key + "." + child.key
|
Node<String,PackageInfoExt> |
compressTree(Node<String,PackageInfoExt> rootNode,
NodeVisitor<String,PackageInfoExt> nodeCompressor) |
add, find, findNearest, findNearestWithValue, getRootNode, printTree, rewriteTree, rewriteTree, walkTree, walkTreepublic PackagePrefixTree()
public void add(@NotNull
String packageName,
@Nullable
PackageInfoExt value)
public void compressTree()
public Node<String,PackageInfoExt> compressTree(Node<String,PackageInfoExt> rootNode, NodeVisitor<String,PackageInfoExt> nodeCompressor)
Copyright © 2024 OpenClover.org. All rights reserved.