Class MatcherTree.Node

java.lang.Object
org.apache.rat.documentation.velocity.Matcher
org.apache.rat.documentation.velocity.MatcherTree.Node
Enclosing class:
MatcherTree

public static class MatcherTree.Node extends Matcher
The representation of a node in a License Matcher tree. A node is a Matcher that tracks the level of the tree in which it appears.
  • Method Details

    • level

      public int level()
      Gets the level in the tree of this node.
      Returns:
      the level in the tree of this node.
    • getEnclosed

      public Matcher.Enclosed getEnclosed()
      Gets the enclosed node only if it is another matcher.
      Overrides:
      getEnclosed in class Matcher
      Returns:
      the enclosed node.
    • getAttributes

      public Collection<Matcher.Attribute> getAttributes()
      Gets the attributes only if they have values.
      Overrides:
      getAttributes in class Matcher
      Returns:
      the collection of attributes that have values.