diff src/luan/interp/LenExpr.java @ 49:8ede219cd111

add WebShell git-svn-id: https://luan-java.googlecode.com/svn/trunk@50 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 28 Dec 2012 19:35:04 +0000
parents 64ecb7a3aad7
children 6ca02b188dba
line wrap: on
line diff
--- a/src/luan/interp/LenExpr.java	Fri Dec 28 03:29:12 2012 +0000
+++ b/src/luan/interp/LenExpr.java	Fri Dec 28 19:35:04 2012 +0000
@@ -13,19 +13,19 @@
 		super(se,op);
 	}
 
-	@Override public Object eval(LuanStateImpl lua) throws LuanException {
-		Object o = op.eval(lua);
+	@Override public Object eval(LuanStateImpl luan) throws LuanException {
+		Object o = op.eval(luan);
 		if( o instanceof String ) {
 			String s = (String)o;
 			return s.length();
 		}
-		LuanFunction fn = lua.getHandlerFunction(se,"__len",o);
+		LuanFunction fn = luan.getHandlerFunction(se,"__len",o);
 		if( fn != null )
-			return Luan.first(lua.call(fn,se,"__len",o));
+			return Luan.first(luan.call(fn,se,"__len",o));
 		if( o instanceof LuanTable ) {
 			LuanTable t = (LuanTable)o;
 			return t.length();
 		}
-		throw new LuanException( lua, se, "attempt to get length of a " + Luan.type(o) + " value" );
+		throw new LuanException( luan, se, "attempt to get length of a " + Luan.type(o) + " value" );
 	}
 }