本文整理汇总了Java中org.luaj.vm2.Varargs.arg1方法的典型用法代码示例。如果您正苦于以下问题:Java Varargs.arg1方法的具体用法?Java Varargs.arg1怎么用?Java Varargs.arg1使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.luaj.vm2.Varargs
的用法示例。
在下文中一共展示了Varargs.arg1方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LVRefreshScroller
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public LVRefreshScroller(Globals globals, LuaValue metaTable, Varargs varargs) {
super(globals.getContext());
mLuaUserdata = new UDRefreshScroller(this, globals, metaTable, varargs != null ? varargs.arg1() : null);
LayoutInflater inflater = (LayoutInflater) globals.getContext().getSystemService( Context.LAYOUT_INFLATER_SERVICE );
View view = inflater.inflate(R.layout.lv_scroller, null);
this.addView(view, LuaViewUtil.createRelativeLayoutParamsMM());
mHeaderContainer = (RelativeLayout) view.findViewById(R.id.header_container);
mPinnedContainer = (RelativeLayout) view.findViewById(R.id.pinned_container);
mContentContainer = (RelativeLayout) view.findViewById(R.id.content_container);
// 测试
this.setEnabled(false);
}
示例2: invoke
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public Varargs invoke(Varargs args) {
Object o = args.checkuserdata(1);
LuaValue v = args.checkvalue(2);
LuaUserdata u = (LuaUserdata) args.arg1();
u.m_instance = v.checkuserdata();
u.m_metatable = v.getmetatable();
return NONE;
}
示例3: invoke
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public Varargs invoke(Varargs args) {
LuaValue ld = args.arg1();
args.argcheck(ld.isstring() || ld.isfunction(), 1, "ld must be string or function");
String source = args.optjstring(2, ld.isstring() ? ld.tojstring() : "=(load)");
String mode = args.optjstring(3, "bt");
LuaValue env = args.optvalue(4, globals);
return loadStream(ld.isstring() ? ld.strvalue().toInputStream() :
new StringInputStream(ld.checkfunction()), source, mode, env);
}
示例4: LVCustomViewPagerIndicator
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public LVCustomViewPagerIndicator(Globals globals, LuaValue metaTable, Varargs varargs) {
super(globals.getContext());
this.mInitParams = varargs != null ? varargs.arg1() : null;
this.mLuaUserdata = new UDCustomViewPagerIndicator(this, globals, metaTable, this.mInitParams);
this.mLayout = new IcsLinearLayout(globals.getContext(), R.attr.lv_vpiIconPageIndicatorStyle);
init();
}
示例5: invoke
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public Varargs invoke(Varargs args) {
Object o = args.checkuserdata(1);
LuaValue v = args.checkvalue(2);
LuaUserdata u = (LuaUserdata) args.arg1();
u.m_instance = v.checkuserdata();
u.m_metatable = v.getmetatable();
return NONE;
}
示例6: invoke
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public Varargs invoke(Varargs args) {
LuaValue ld = args.arg1();
args.argcheck(ld.isstring() || ld.isfunction(), 1, "ld must be string or function");
String source = args.optjstring(2, ld.isstring() ? ld.tojstring() : "=(load)");
String mode = args.optjstring(3, "bt");
LuaValue env = args.optvalue(4, globals);
return loadStream(ld.isstring() ? ld.strvalue().toInputStream() : new
StringInputStream(ld.checkfunction()), source, mode, env);
}
示例7: invoke
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public Varargs invoke(Varargs args) {
LuaValue ld = args.arg1();
args.argcheck(ld.isstring() || ld.isfunction(), 1, "ld must be string or function");
String source = args.optjstring(2, ld.isstring()? ld.tojstring(): "=(load)");
String mode = args.optjstring(3, "bt");
LuaValue env = args.optvalue(4, globals);
return loadStream(ld.isstring()? ld.strvalue().toInputStream():
new StringInputStream(ld.checkfunction()), source, mode, env);
}
示例8: LVRefreshLayout
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public LVRefreshLayout(Globals globals, LuaValue metaTable, Varargs varargs) {
super(globals.getContext());
this.mLuaUserdata = new UDRefreshLayout(this, globals, metaTable, varargs != null ? varargs.arg1() : null);
init(globals);
}
示例9: LVHorizontalScrollView
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
public LVHorizontalScrollView(Globals globals, LuaValue metaTable, Varargs varargs) {
super(globals.getContext());
this.mLuaUserdata = new UDHorizontalScrollView(this, globals, metaTable, varargs != null ? varargs.arg1() : null);
init(globals);
}
示例10: getUD
import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
/**
* 获取userdata
*
* @param varargs
* @return
*/
public U getUD(Varargs varargs) {
return (U) varargs.arg1();
}