Skip to content

Instantly share code, notes, and snippets.

@ShikherVerma
Last active September 17, 2017 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShikherVerma/7e59b206c7011fda2e4a93fdb6f52293 to your computer and use it in GitHub Desktop.
Save ShikherVerma/7e59b206c7011fda2e4a93fdb6f52293 to your computer and use it in GitHub Desktop.
private Map<TypeElement, BindingSet> findAndParseTargets(RoundEnvironment env) {
Map<TypeElement, BindingSet.Builder> builderMap = new LinkedHashMap<>();
...
// Process each @BindAnim element.
for...
...
// Process each @BindString element.
for...
// Process each @BindView element.
for (Element element : env.getElementsAnnotatedWith(BindView.class)) {
try {
parseBindView(element, builderMap, erasedTargetNames);
} catch (Exception e) {
logParsingError(element, BindView.class, e);
}
}
// Process each @BindViews element.
...
return bindingMap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment