@Override
 public void apply(TreePath path, Context context, DescriptionListener listener) {
   RefasterScanner.create(this, listener)
       .scan(path, prepareContext(context, (JCCompilationUnit) path.getCompilationUnit()));
 }
示例#2
0
  private JCCompilationUnit toUnit(Element element) {
    TreePath path = trees == null ? null : trees.getPath(element);
    if (path == null) return null;

    return (JCCompilationUnit) path.getCompilationUnit();
  }