Examples of rawget()


Examples of org.luaj.vm2.LuaTable.rawget()

    assertEquals( capacities[keys.length], t.getHashLength() );
    for ( int i = 0; i < keys.length; ++i ) {
      LuaValue vi = LuaString.valueOf( "Test Value! "+i );
      assertEquals( vi, t.get( keys[i] ) );
      assertEquals( vi, t.get( LuaString.valueOf(keys[i]) ) );
      assertEquals( vi, t.rawget( keys[i] ) );
      assertEquals( vi, t.rawget( keys[i] ) );
    }

    // replace with new values
    for ( int i = 0; i < keys.length; ++i ) {
View Full Code Here

Examples of org.luaj.vm2.LuaTable.rawget()

    for ( int i = 0; i < keys.length; ++i ) {
      LuaValue vi = LuaString.valueOf( "Test Value! "+i );
      assertEquals( vi, t.get( keys[i] ) );
      assertEquals( vi, t.get( LuaString.valueOf(keys[i]) ) );
      assertEquals( vi, t.rawget( keys[i] ) );
      assertEquals( vi, t.rawget( keys[i] ) );
    }

    // replace with new values
    for ( int i = 0; i < keys.length; ++i ) {
      t.set( keys[i], LuaString.valueOf( "Replacement Value! "+i ) );
View Full Code Here

Examples of org.luaj.vm2.LuaValue.rawget()

        return e!=null? e: NIL;
      }
      case 3: // "getmetatable", // ( object ) -> table
      {
        LuaValue mt = args.checkvalue(1).getmetatable();
        return mt!=null? mt.rawget(METATABLE).optvalue(mt): NIL;
      }
      case 4: // "load", // ( func [,chunkname] ) -> chunk | nil, msg
      {
        LuaValue func = args.checkfunction(1);
        String chunkname = args.optjstring(2, "function");
View Full Code Here

Examples of org.luaj.vm2.LuaValue.rawget()

        return t;
      }
      case 16: { // "setmetatable", // (table, metatable) -> table
        final LuaValue t = args.arg1();
        final LuaValue mt0 = t.getmetatable();
        if ( mt0!=null && !mt0.rawget(METATABLE).isnil() )
          error("cannot change a protected metatable");
        final LuaValue mt = args.checkvalue(2);
        return t.setmetatable(mt.isnil()? null: mt.checktable());
      }
      case 17: { // "tostring", // (e) -> value
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.