code: public Parse[] getTagNodes() {
      final List<Parse> tags = new LinkedList<Parse>();
      final List<Parse> nodes = new LinkedList<Parse>();
      nodes.addAll(this.parts);
      while (nodes.size() != 0) {
        final Parse p = nodes.remove(0);
        if (p.isPosTag()) {
          tags.add(p);
        } else {
          nodes.addAll(0, p.parts);
        }
      }
      return tags.toArray(new Parse[tags.size()]);
    }
docs: Returns the parse nodes which are children of this node and which are pos
  tags.
  
  @return the parse nodes which are children of this node and which are pos
  tags.