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

    return (JCCompilationUnit) path.getCompilationUnit();
  }