Class PointerTargetTree


  • public class PointerTargetTree
    extends java.lang.Object
    A container for the root node of a pointer target tree.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Two PointerTargetTree's are equal if their root nodes are equal.
        Overrides:
        equals in class java.lang.Object
      • getFirstMatch

        public java.lang.Object getFirstMatch​(PointerTargetTreeNodeList.Operation opr)
        Walk the tree and perform the operation opr on each node. Continues until either opr returns a non-null value, or it reaches the last node in the tree.
      • getAllMatches

        public java.util.List getAllMatches​(PointerTargetTreeNodeList.Operation opr)
        Walk the tree and perform the operation opr on each node. Searchs the tree exhaustively and returns a List containing all nodes that are returned by opr.
      • print

        public void print()
      • reverse

        public PointerTargetNodeList[] reverse()
        Reverse this tree. A reversal is done by converting this tree to lists and then reversing each of the lists. The structure of the tree is unaffected by this operation.
      • toList

        public java.util.List toList()
        Convert this tree to an List of PointerTargetNodeLists. This creates one list for each unique path through the tree.