Java 类javax.lang.model.util.SimpleElementVisitor6 实例源码

项目:compile-command-annotations    文件:CompileCommandProcessor.java   
private void processSimpleMethodAnnotation(final Class<? extends Annotation> clazz, RoundEnvironment roundEnv) {
    for (Element element : roundEnv.getElementsAnnotatedWith(clazz))
        lines.add(element.accept(new SimpleElementVisitor6<String, RoundEnvironment>() {

            @Override
            public String visitExecutable(final ExecutableElement e, final RoundEnvironment roundEnvironment) {
                return clazz.getSimpleName().toLowerCase() + " " + getDescriptor(e);
            }

        }, roundEnv));
}