Class PrefixTree

java.lang.Object
org.eclipse.aether.internal.impl.filter.ruletree.PrefixTree

public class PrefixTree extends Object
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".
By default, artifact is allowed if layout converted path of it has a matching prefix in this file. Example prefix files:
  • Field Details

  • Constructor Details

  • Method Details

    • loadNodes

      public int loadNodes(Stream<String> linesStream)
    • loadNode

      public boolean loadNode(String line)
    • acceptedPath

      public boolean acceptedPath(String path)
    • getName

      public String getName()
    • isLeaf

      public boolean isLeaf()
    • isStop

      public boolean isStop()
    • isAllow

      public Boolean isAllow()
    • addSibling

      protected org.eclipse.aether.internal.impl.filter.ruletree.Node addSibling(String name, boolean stop, Boolean allow)
    • getSibling

      protected org.eclipse.aether.internal.impl.filter.ruletree.Node getSibling(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • dump

      public void dump(String prefix)