use of javax.lang.model.type.MirroredTypeException in project epoxy by airbnb.
the class ResourceProcessor method parseRClass.
private void parseRClass(String rClass, Map<Integer, AndroidResource> symbols) {
Element element;
try {
element = elementUtils.getTypeElement(rClass);
} catch (MirroredTypeException mte) {
element = typeUtils.asElement(mte.getTypeMirror());
}
JCTree tree = (JCTree) trees.getTree(element);
if (tree != null) {
// tree can be null if the references are compiled types and not source
IdScanner idScanner = new IdScanner(symbols, elementUtils.getPackageOf(element).getQualifiedName().toString());
tree.accept(idScanner);
} else {
parseCompiledR((TypeElement) element, symbols);
}
}
Aggregations