Class MatcherTree

java.lang.Object
org.apache.rat.documentation.velocity.MatcherTree

public class MatcherTree extends Object
The representation of the Matcher tree found in a License.
  • Constructor Details

    • MatcherTree

      public MatcherTree(IHeaderMatcher root)
      Constructor.
      Parameters:
      root - the root of the tree. The matcher from a license.
  • Method Details

    • getRoot

      public Description getRoot()
      Gets the description of the root of the tree.
      Returns:
      the description of the root of the tree.
    • traverse

      public List<MatcherTree.Node> traverse()
      Executes an in-order-traversal of the tree.
      Returns:
      A list of MatcherTree.Nodes from an in-order-traversal.