Mercurial > hg > Database > Alice
comparison 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 |
comparison
equal
deleted
inserted
replaced
629:d0d1cd3dfc11 | 630:77adeb85c4d0 |
---|---|
1 package alice.Annotation; | |
2 | |
3 | |
4 import javax.annotation.processing.*; | |
5 import javax.lang.model.SourceVersion; | |
6 import javax.lang.model.element.Element; | |
7 import javax.lang.model.element.TypeElement; | |
8 import javax.tools.Diagnostic.Kind; | |
9 import java.util.Set; | |
10 | |
11 /** | |
12 * Created by e125769 on 10/16/17. | |
13 */ | |
14 @SupportedAnnotationTypes("alice.Annotation.Input") | |
15 public class InputProcesser extends AbstractProcessor { | |
16 | |
17 @Override | |
18 public boolean process(Set<? extends TypeElement> typeElements, RoundEnvironment roundEnv) { | |
19 | |
20 /*for (TypeElement typeElement : typeElements) { | |
21 Set<? extends Element> elements = roundEnv.getElementsAnnotatedWith(typeElement); | |
22 for (Element element : elements) { | |
23 Input in = element.getAnnotation(Input.class); | |
24 System.out. println("@input" + in.input()); | |
25 } | |
26 }*/ | |
27 | |
28 return true; | |
29 } | |
30 } |