Mercurial > hg > Database > Alice
view src/alice/test/codesegment/api/TakeCodeSegment.java @ 290:4074077d118d
Refactor iterating process with for-each sentence.
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Oct 2013 03:26:38 +0900 |
parents | fec0726bb126 |
children |
line wrap: on
line source
package alice.test.codesegment.api; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class TakeCodeSegment extends CodeSegment { Receiver ds1 = ids.create(CommandType.TAKE); public TakeCodeSegment(String key){ this.ds1.setKey(key); } @Override public void run() { new TakeCodeSegment(ds1.key); } }