comparison core/src/luan/impl/UpValue.java @ 194:08df375e2e5f

remove EnvGetter git-svn-id: https://luan-java.googlecode.com/svn/trunk@195 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 02 Jul 2014 04:52:25 +0000
parents 3dcb0f9bee82
children c6bcb8859b93
comparison
equal deleted inserted replaced
193:66ed8886abc0 194:08df375e2e5f
81 public UpValue get(LuanStateImpl luan) { 81 public UpValue get(LuanStateImpl luan) {
82 return luan.closure().upValues()[index]; 82 return luan.closure().upValues()[index];
83 } 83 }
84 } 84 }
85 85
86 static final class EnvGetter implements Getter {
87
88 public UpValue get(LuanStateImpl luan) throws LuanException {
89 return luan.getUpValue(this);
90 }
91 }
92
93 static final class ValueGetter implements Getter { 86 static final class ValueGetter implements Getter {
94 private final UpValue upValue; 87 private final UpValue upValue;
95 88
96 ValueGetter(Object value) { 89 ValueGetter(Object value) {
97 this.upValue = new UpValue(value); 90 this.upValue = new UpValue(value);