Class MatcherTree.Node
java.lang.Object
org.apache.rat.documentation.velocity.Matcher
org.apache.rat.documentation.velocity.MatcherTree.Node
- Enclosing class:
MatcherTree
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.rat.documentation.velocity.Matcher
Matcher.Attribute, Matcher.Enclosed
-
Method Summary
Modifier and TypeMethodDescriptionGets the attributes only if they have values.Gets the enclosed node only if it is another matcher.int
level()
Gets the level in the tree of this node.Methods inherited from class org.apache.rat.documentation.velocity.Matcher
getDescription, getName
-
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
Gets the enclosed node only if it is another matcher.- Overrides:
getEnclosed
in classMatcher
- Returns:
- the enclosed node.
-
getAttributes
Gets the attributes only if they have values.- Overrides:
getAttributes
in classMatcher
- Returns:
- the collection of attributes that have values.
-