public String treeToFilePositionString(Tree tree,CompilationUnitTree currentRoot,ProcessingEnvironment processingEnv){
  if (tree == null) {
    return null;
  }
  SourcePositions sourcePositions=trees.getSourcePositions();
  long start=sourcePositions.getStartPosition(currentRoot,tree);
  long end=sourcePositions.getEndPosition(currentRoot,tree);
  return "( " + start + ", "+ end+ " )";
}

public String treeToFilePositionString ( Tree tree , CompilationUnitTree currentRoot , ProcessingEnvironment processingEnv ) { if ( tree == null ) { return null ; } SourcePositions sourcePositions = trees . getSourcePositions ( ) ; long start = sourcePositions . getStartPosition ( currentRoot , tree ) ; long end = sourcePositions . getEndPosition ( currentRoot , tree ) ; return "( " + start + ", " + end + " )" ; }
for the given tree , compute the source positions for that tree . return a " tuple " like string ( e . g . " ( 1 , 200 ) " ) that contains the start and end position of the tree in the current compilation unit .
