comparison src/alice/datasegment/Receiver.java @ 65:ca42a2c8ac22

add local access api
author kazz
date Thu, 09 Feb 2012 19:33:46 +0900
parents 7fa9ddb31f64
children 33a19ca88e43
comparison
equal deleted inserted replaced
64:7aaadd08288c 65:ca42a2c8ac22
45 break; 45 break;
46 } 46 }
47 ids.setKey(); 47 ids.setKey();
48 } 48 }
49 49
50 public void setKey(String key) {
51 this.key = key;
52 setKey(key, 0);
53 }
54
55 public void setKey(String key, int index) {
56 switch (type) {
57 case PEEK:
58 ids.peek(this, key, index);
59 break;
60 case TAKE:
61 ids.take(this, key, index);
62 break;
63 }
64 ids.setKey();
65 }
66
50 public String asString() { 67 public String asString() {
51 if (val.getType() == ValueType.RAW) { 68 if (val.getType() == ValueType.RAW) {
52 return val.asRawValue().getString(); 69 return val.asRawValue().getString();
53 } 70 }
54 return null; 71 return null;