Class AbstractNode

java.lang.Object
org.apache.maven.internal.impl.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
DefaultNode

public abstract class AbstractNode extends Object implements Node
  • Constructor Details

    • AbstractNode

      public AbstractNode()
  • Method Details

    • accept

      public boolean accept(NodeVisitor visitor)
      Description copied from interface: Node
      Traverses this node and potentially its children using the specified visitor.
      Specified by:
      accept in interface Node
      Parameters:
      visitor - the visitor to call back, must not be null
      Returns:
      true to visit siblings nodes of this node as well, false to skip siblings
    • filter

      public Node filter(Predicate<Node> filter)
      Description copied from interface: Node
      Returns a new tree starting at this node, filtering the children. Note that this node will not be filtered and only the children and its descendant will be checked.
      Specified by:
      filter in interface Node
      Parameters:
      filter - the filter to apply
      Returns:
      a new filtered graph
    • asString

      public String asString()
      Description copied from interface: Node
      Returns a string representation of this dependency node.
      Specified by:
      asString in interface Node
      Returns:
      the string representation
    • toString

      public String toString()
      Overrides:
      toString in class Object