public int getEndPosition ( Tree node ) { JCCompilationUnit compilationUnit = ( JCCompilationUnit ) getPath ( ) . getCompilationUnit ( ) ; if ( compilationUnit . endPositions == null ) { return - 1 ; } return ( ( JCTree ) node ) . getEndPosition ( compilationUnit . endPositions ) ; }
Returns the end position of the node or - 1 if it is not available .