org.luaj.vm2.LuaTable.rawget()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.luaj.vm2.LuaTable.rawget()方法的一些代码示例,展示了LuaTable.rawget()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LuaTable.rawget()方法的具体详情如下:
包路径:org.luaj.vm2.LuaTable
类名称:LuaTable
方法名:rawget

LuaTable.rawget介绍

暂无

代码示例

代码示例来源:origin: mirkosertic/GameComposer

@Override
  public LuaValue call(LuaValue arg1, LuaValue arg2) {
    return arg1.checktable().rawget(arg2);
  }
}

代码示例来源:origin: M66B/XPrivacyLua

public LuaValue call(LuaValue arg1, LuaValue arg2) {
    return arg1.checktable().rawget(arg2);
  }
}

代码示例来源:origin: hsllany/HtmlNative

public LuaValue call(LuaValue arg1, LuaValue arg2) {
    return arg1.checktable().rawget(arg2);
  }
}

代码示例来源:origin: M66B/XPrivacyLua

public LuaValue get( LuaValue key ) {
  LuaValue v = rawget(key);
  return v.isnil() && m_metatable!=null? gettable(this,key): v;
}

代码示例来源:origin: mirkosertic/GameComposer

@Override
public LuaValue get( LuaValue key ) {
  LuaValue v = rawget(key);
  return v.isnil() && m_metatable!=null? gettable(this,key): v;
}

代码示例来源:origin: hsllany/HtmlNative

public LuaValue get( LuaValue key ) {
  LuaValue v = rawget(key);
  return v.isnil() && m_metatable!=null? gettable(this,key): v;
}

代码示例来源:origin: hsllany/HtmlNative

/** Insert an element at a position in a list-table
 *  
 * @param pos the position to remove
 * @param value The value to insert
 */
public void insert(int pos, LuaValue value) {
  if ( pos == 0 )
    pos = rawlen()+1;
  while ( ! value.isnil() ) {
    LuaValue v = rawget( pos );
    rawset(pos++, value);
    value = v;
  }
}

代码示例来源:origin: hsllany/HtmlNative

public LuaValue get( int key ) {
  LuaValue v = rawget(key);
  return v.isnil() && m_metatable!=null? gettable(this,valueOf(key)): v;
}

代码示例来源:origin: mirkosertic/GameComposer

@Override
public LuaValue get( int key ) {
  LuaValue v = rawget(key);
  return v.isnil() && m_metatable!=null? gettable(this,valueOf(key)): v;
}

代码示例来源:origin: M66B/XPrivacyLua

public LuaValue get( int key ) {
  LuaValue v = rawget(key);
  return v.isnil() && m_metatable!=null? gettable(this,valueOf(key)): v;
}

代码示例来源:origin: M66B/XPrivacyLua

/** Insert an element at a position in a list-table
 *  
 * @param pos the position to remove
 * @param value The value to insert
 */
public void insert(int pos, LuaValue value) {
  if ( pos == 0 )
    pos = rawlen()+1;
  while ( ! value.isnil() ) {
    LuaValue v = rawget( pos );
    rawset(pos++, value);
    value = v;
  }
}

代码示例来源:origin: hsllany/HtmlNative

/**
 * Get the next element after a particular key in the 
 * contiguous array part of a table 
 * @return key,value or none
 */
public Varargs inext(LuaValue key) {
  int k = key.checkint() + 1;
  LuaValue v = rawget(k);
  return v.isnil()? NONE: varargsOf(LuaInteger.valueOf(k),v);
}

代码示例来源:origin: M66B/XPrivacyLua

/**
 * Get the next element after a particular key in the 
 * contiguous array part of a table 
 * @return key,value or none
 */
public Varargs inext(LuaValue key) {
  int k = key.checkint() + 1;
  LuaValue v = rawget(k);
  return v.isnil()? NONE: varargsOf(LuaInteger.valueOf(k),v);
}

代码示例来源:origin: M66B/XPrivacyLua

public void set( int key, LuaValue value ) {
  if ( m_metatable==null || ! rawget(key).isnil() || ! settable(this,LuaInteger.valueOf(key),value) )
    rawset(key, value);
}

代码示例来源:origin: mirkosertic/GameComposer

@Override
public void set( int key, LuaValue value ) {
  if ( m_metatable==null || ! rawget(key).isnil() || ! settable(this,LuaInteger.valueOf(key),value) )
    rawset(key, value);
}

代码示例来源:origin: mirkosertic/GameComposer

/**
 * Get the next element after a particular key in the 
 * contiguous array part of a table 
 * @return key,value or none
 */
@Override
public Varargs inext(LuaValue key) {
  int k = key.checkint() + 1;
  LuaValue v = rawget(k);
  return v.isnil()? NONE: varargsOf(LuaInteger.valueOf(k),v);
}

代码示例来源:origin: hsllany/HtmlNative

public void set( int key, LuaValue value ) {
  if ( m_metatable==null || ! rawget(key).isnil() || ! settable(this,LuaInteger.valueOf(key),value) )
    rawset(key, value);
}

代码示例来源:origin: M66B/XPrivacyLua

/** caller must ensure key is not nil */
public void set( LuaValue key, LuaValue value ) {
  if (!key.isvalidkey() && !metatag(NEWINDEX).isfunction())
    typerror("table index");
  if ( m_metatable==null || ! rawget(key).isnil() ||  ! settable(this,key,value) )
    rawset(key, value);
}

代码示例来源:origin: hsllany/HtmlNative

/** caller must ensure key is not nil */
public void set( LuaValue key, LuaValue value ) {
  if (!key.isvalidkey() && !metatag(NEWINDEX).isfunction())
    typerror("table index");
  if ( m_metatable==null || ! rawget(key).isnil() ||  ! settable(this,key,value) )
    rawset(key, value);
}

代码示例来源:origin: mirkosertic/GameComposer

/** caller must ensure key is not nil */
@Override
public void set( LuaValue key, LuaValue value ) {
  if (!key.isvalidkey() && !metatag(NEWINDEX).isfunction())
    typerror("table index");
  if ( m_metatable==null || ! rawget(key).isnil() ||  ! settable(this,key,value) )
    rawset(key, value);
}

相关文章

微信公众号

最新文章

更多