public String getAbsolutePath ( ) { StringBuilder pathBuilder = new StringBuilder ( "/" ) . append ( this . getName ( ) ) ; AstNode parent = this . getParent ( ) ; while ( parent != null ) { pathBuilder . insert ( 0 , "/" + parent . getName ( ) ) ; parent = parent . getParent ( ) ; } return pathBuilder . toString ( ) ; }
Get the current path of this node