Package org.luaj.vm2.lib.jse

Examples of org.luaj.vm2.lib.jse.LuajavaClassMembersTest$B


            }
        };
    }

    private LuaValue getContent() {
        return new OneArgFunction() {
            /**
             * @param page
             * @return the (unparsed) content of the page, or nil if there is no page.
             * The page will be recorded as a transclusion.
             */
 
View Full Code Here


        table.set("usersInGroup", usersInGroup());
        return table;
    }

    private LuaValue usersInGroup() {
        return new OneArgFunction() {
            @Override public LuaValue call(LuaValue group) {
                return LuaValue.valueOf(0);
            }
        };
    }
View Full Code Here

            }
        };
    }

    private LuaValue pagesInNamespace() {
        return new OneArgFunction() {
            @Override public LuaValue call(LuaValue ns) {
                return LuaValue.valueOf(0);
            }
        };
    }
View Full Code Here

            }
        };
    }

    private LuaValue getNsIndex() {
        return new OneArgFunction() {
            @Override
            /**
             * Get a namespace key by value, case insensitive.  Canonical namespace
             * names override custom ones defined for the current language.
             *
 
View Full Code Here

        iface.set("canonicalUrl", canonicalUrl());
        return iface;
    }

    private LuaValue anchorEncode() {
        return new OneArgFunction() {
            @Override
            public LuaValue call(LuaValue arg) {
                return null;
            }
        };
View Full Code Here

    protected OneArgFunction defaultFunction() {
        return defaultFunction(null);
    }

    protected OneArgFunction defaultFunction(final String argName) {
        return new OneArgFunction() {
            @Override
            public LuaValue call(LuaValue arg) {
                // logger.warn("defaultFunction " + argName + " called");
                return LuaValue.NIL;
            }
View Full Code Here

        table.set("isSubsting", isSubsting());
        return table;
    }

    private LuaValue callParserFunction() {
        return new ThreeArgFunction() {
            @Override public LuaValue call(LuaValue frameId, LuaValue function, LuaValue args) {
                return null;
            }
        };
    }
View Full Code Here

            }
        };
    }

    private LuaValue expandTemplate() {
        return new ThreeArgFunction() {
            @Override
            public LuaValue call(LuaValue frameId, LuaValue title, LuaValue args) {
                throw new UnsupportedOperationException("no implemented");
            }
        };
View Full Code Here

            }
        };
    }

    private LuaValue newChildFrame() {
        return new ThreeArgFunction() {
            @Override
            public LuaValue call(LuaValue frameId, LuaValue title, LuaValue args) {
                return NIL;
            }
        };
View Full Code Here

    }

    private void stubExecuteModule() {
        // don't need module isolation
        final LuaValue mw = globals.get("mw");
        mw.set("executeModule", new TwoArgFunction() {
            @Override public LuaValue call(LuaValue chunk, LuaValue isConsole) {
                return chunk.call();
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.luaj.vm2.lib.jse.LuajavaClassMembersTest$B

Copyright © 2018 www.massapicom. 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.