Class PrefixTree
java.lang.Object
org.eclipse.aether.internal.impl.filter.ruletree.PrefixTree
Prefix tree for paths: if you step on a path prefix that exists, you are good to go.
This class parses a text file that has a prefix on each line:
- ignored/formatting - each line starting with
'#'(hash) or being empty/blank is ignored. - a path prefix ie "/org/apache/maven".
Example prefix files:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptedPath(String path) booleanisLeaf()booleanAdds a line to the tree: it parses the URI-path-like element into list of segmentselementsOfPath(String)cycles over the list, and marks last node added asleaf=trueif already on leaf node, processing stops (shorter path wins)int
-
Constructor Details
-
PrefixTree
-
-
Method Details
-
isLeaf
-
loadNodes
-
loadNode
-
acceptedPath
-