use of blue.plugin.NoteProcessorPlugin in project blue by kunstmusik.
the class NoteProcessorPluginProcessor method handleProcess.
@Override
protected boolean handleProcess(Set<? extends TypeElement> set, RoundEnvironment env) throws LayerGenerationException {
Elements elements = processingEnv.getElementUtils();
for (Element e : env.getElementsAnnotatedWith(NoteProcessorPlugin.class)) {
TypeElement clazz = (TypeElement) e;
NoteProcessorPlugin noteProcessorPlugin = clazz.getAnnotation(NoteProcessorPlugin.class);
String teName = elements.getBinaryName(clazz).toString();
File f = layer(e).file("blue/noteProcessors/" + teName.replace('.', '-') + ".instance").intvalue("position", noteProcessorPlugin.position()).bundlevalue("displayName", noteProcessorPlugin.displayName());
f.write();
}
return true;
}
Aggregations