dap4/d4core/src/main/java/dap4/core/dmr/DapNode.java
public List<DapNode>
    getPath()
    {
        List<DapNode> path = new ArrayList<DapNode>();
        DapNode current = this;
        for(; ; ) {
            path.add(0, current);
            current = current.getParent();
            if(current == null)
                break;
        }
        return path;
    }
public List<DapNode>
    getPath()
    {
        List<DapNode> path = new ArrayList<DapNode>();
        DapNode current = this;
        for(; ; ) {
            path.add(0, current);
            current = current.getParent();
            if(current == null)
                break;
        }
        return path;
    }
public List < DapNode > getPath ( ) { List < DapNode > path = new ArrayList < DapNode > ( ) ; DapNode current = this ; for ( ; ; ) { path . add ( 0 , current ) ; current = current . getParent ( ) ; if ( current == null ) break ; } return path ; }
Compute the path upto, and including
some specified containing node (null=>root)
The containing node is included as is this node.

@return ordered list of parent nodes
Compute the path upto and including some specified containing node ( null = > root ) The containing node is included as is this node .