Mercurial Hosting > luan
view src/luan/interp/ConstExpr.java @ 154:c2e5101682ae
Expr extends Expressions
git-svn-id: https://luan-java.googlecode.com/svn/trunk@155 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 17 Jun 2014 09:55:43 +0000 |
parents | 14281d5bd36f |
children |
line wrap: on
line source
package luan.interp; import luan.LuanSource; final class ConstExpr extends CodeImpl implements Expr { private final Object obj; ConstExpr(Object obj) { this(null,obj); } ConstExpr(LuanSource.Element se,Object obj) { super(se); this.obj = obj; } @Override public Object eval(LuanStateImpl luan) { return obj; } @Override public String toString() { return "(ConstExpr "+obj+")"; } }