comparison core/src/luan/impl/IndexExpr.java @ 407:7fd9f1b7b878

replace LuanPropertyTable with LuanPropertyMeta
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 29 Apr 2015 13:01:00 -0600
parents 3e68917a0dc6
children 8fbb961aabd5
comparison
equal deleted inserted replaced
406:9321a33b9b1c 407:7fd9f1b7b878
42 } 42 }
43 if( obj instanceof String ) 43 if( obj instanceof String )
44 return StringLuan.__index(luan,(String)obj,key); 44 return StringLuan.__index(luan,(String)obj,key);
45 if( obj instanceof byte[] ) 45 if( obj instanceof byte[] )
46 return BinaryLuan.__index(luan,(byte[])obj,key); 46 return BinaryLuan.__index(luan,(byte[])obj,key);
47 Object value = JavaLuan.__index(luan,obj,key); 47 if( obj != null ) {
48 if( value != null ) 48 Object value = JavaLuan.__index(luan,obj,key);
49 return value; 49 if( value != null )
50 return value;
51 }
50 throw luan.bit(op1.se()).exception( "attempt to index '"+op1.se().text()+"' (a " + Luan.type(obj) + " value)" ); 52 throw luan.bit(op1.se()).exception( "attempt to index '"+op1.se().text()+"' (a " + Luan.type(obj) + " value)" );
51 } 53 }
52 } 54 }