Mercurial > hg > Database > Alice
diff src/main/java/alice/Annotation/InputProcesser.java @ 630:77adeb85c4d0 dispose
add Annotation
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 30 Nov 2017 00:43:22 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/alice/Annotation/InputProcesser.java Thu Nov 30 00:43:22 2017 +0900 @@ -0,0 +1,30 @@ +package alice.Annotation; + + +import javax.annotation.processing.*; +import javax.lang.model.SourceVersion; +import javax.lang.model.element.Element; +import javax.lang.model.element.TypeElement; +import javax.tools.Diagnostic.Kind; +import java.util.Set; + +/** + * Created by e125769 on 10/16/17. + */ +@SupportedAnnotationTypes("alice.Annotation.Input") +public class InputProcesser extends AbstractProcessor { + + @Override + public boolean process(Set<? extends TypeElement> typeElements, RoundEnvironment roundEnv) { + + /*for (TypeElement typeElement : typeElements) { + Set<? extends Element> elements = roundEnv.getElementsAnnotatedWith(typeElement); + for (Element element : elements) { + Input in = element.getAnnotation(Input.class); + System.out. println("@input" + in.input()); + } + }*/ + + return true; + } +} \ No newline at end of file