Mercurial > hg > Database > Alice
view src/main/java/alice/Annotation/AliceAnnotation.java @ 655:1c93e82e05c6 default tip
fix timestamp
author | suruga |
---|---|
date | Sat, 17 Feb 2018 00:33:00 +0900 |
parents | 8d9f35701fdb |
children |
line wrap: on
line source
package alice.Annotation; import alice.codesegment.CodeSegment; /** * Created by e125769 on 10/15/17. */ public class AliceAnnotation extends CodeSegment{ @Take("hoge") String hoge; @Peek("piyo") int piyo; //指定したい場合 //Receiver huge = ids.create(CommandType.TAKE); public AliceAnnotation(String s){ //huge.setKey(s);//交互にsetKeyを呼ぶことになってしまい最後のsetKeyが無効のまま走る。つまりユーザー側でsetKeyは直接呼べない } @Override public void run() { System.out.println("in run!"); System.out.println(hoge); System.out.println(piyo); //System.out.println(huge.asClass(String.class)); } }