Mercurial > hg > Database > Christie
diff src/main/java/christie/codegear/CodeGear.java @ 0:c082039368f5
make project
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 07 Dec 2017 21:45:59 +0900 |
parents | |
children | 3ea61d0bfc34 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/christie/codegear/CodeGear.java Thu Dec 07 21:45:59 2017 +0900 @@ -0,0 +1,33 @@ +package christie.codegear; + +import christie.annotation.Take; +import christie.datagear.DataGear; +import christie.datagear.StringData; + +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.HashMap; + +/** + * Created by e125769 on 12/7/17. + */ +public interface CodeGear extends Runnable { + InputDataGear idg = new InputDataGear(); + OutputDataGear odg = new OutputDataGear(); + + + default void setKey(){//AnnotationからInputDataGearをセット らidgに待ち合わせ + for (Field field : this.getClass().getDeclaredFields()) { + if (field.isAnnotationPresent(Take.class)){ + Take ano = field.getAnnotation(Take.class); + System.out.println(ano.value()); + //idg.dataGears.put(ano.value(), field.get()); + } + } + } + + default void setValue(){//Annotationから揃ったInputDataGearの値をキャスト + + } + +}