@Test public void getSupportedAnnotationTypes() throws Exception { Set<String> types = mProcessor.getSupportedAnnotationTypes(); Assert.assertNotNull(types); MatcherAssert.assertThat(types.size(), Is.is(ONE)); MatcherAssert.assertThat(types.iterator().next(), Is.is(HolderBuilder.class.getName())); }
@Override public Set<String> getSupportedAnnotationTypes() { Set<String> types = new LinkedHashSet<>(); for (Class<? extends Annotation> annotation : getSupportedAnnotations()) { types.add(annotation.getCanonicalName()); } return types; }
HolderBuilderProcessor extends AbstractProcessor { @Override public Set<String> getSupportedAnnotationTypes() { Set<String> types = new LinkedHashSet<>(); for (Class<? extends Annotation> annotation : getSupportedAnnotations()) { types.add(annotation.getCanonicalName()); } return types; } }
HolderBuilderProcessor extends AbstractProcessor { @Override public Set<String> getSupportedAnnotationTypes() { Set<String> types = new LinkedHashSet<>(); for (Class<? extends Annotation> annotation : getSupportedAnnotations()) { types.add(annotation.getCanonicalName()); } return types; }  }
HolderBuilderProcessor extends AbstractProcessor { @Override public Set<String> getSupportedAnnotationTypes() { Set<String> types = new LinkedHashSet<>(); for (Class<? extends Annotation> annotation : getSupportedAnnotations()) { types.add(annotation.getCanonicalName()); } return types; }  @Override synchronized void init(ProcessingEnvironment processingEnv); @Override Set<String> getSupportedAnnotationTypes(); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment env); }
HolderBuilderProcessor extends AbstractProcessor { @Override public Set<String> getSupportedAnnotationTypes() { Set<String> types = new LinkedHashSet<>(); for (Class<? extends Annotation> annotation : getSupportedAnnotations()) { types.add(annotation.getCanonicalName()); } return types; }  @Override synchronized void init(ProcessingEnvironment processingEnv); @Override Set<String> getSupportedAnnotationTypes(); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment env);  }