当前位置: 首页>>代码示例>>Java>>正文


Java Varargs.arg1方法代码示例

本文整理汇总了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);
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:17,代码来源:LVRefreshScroller.java

示例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;
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:9,代码来源:DebugLib.java

示例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);
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:10,代码来源:BaseLib.java

示例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();
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:8,代码来源:LVCustomViewPagerIndicator.java

示例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;
}
 
开发者ID:hsllany,项目名称:HtmlNative,代码行数:9,代码来源:DebugLib.java

示例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);
}
 
开发者ID:hsllany,项目名称:HtmlNative,代码行数:10,代码来源:BaseLib.java

示例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);
}
 
开发者ID:nekocode,项目名称:Hubs,代码行数:10,代码来源:BaseLib.java

示例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);
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:6,代码来源:LVRefreshLayout.java

示例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);
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:6,代码来源:LVHorizontalScrollView.java

示例10: getUD

import org.luaj.vm2.Varargs; //导入方法依赖的package包/类
/**
 * 获取userdata
 *
 * @param varargs
 * @return
 */
public U getUD(Varargs varargs) {
    return (U) varargs.arg1();
}
 
开发者ID:alibaba,项目名称:LuaViewPlayground,代码行数:10,代码来源:BaseMethodMapper.java


注:本文中的org.luaj.vm2.Varargs.arg1方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。