On invocation, will pick the best method from the list, and invoke it.
This class is not used directly. It is returned by calls to calls to {@link JavaInstance#get(LuaValue key)} when an overloaded method is named.
4142434445464748495051
private final Globals globals = new Globals(); private final PackageLib packageLib; public LuaInstance() throws AerospikeException { globals.load(new JseBaseLib()); packageLib = new PackageLib(); globals.load(packageLib); //globals.load(new Bit32Lib()); // not needed for 5.1 compatibility globals.load(new TableLib()); globals.load(new StringLib()); globals.load(new CoroutineLib());
4546474849505152535455
globals.load(new JseBaseLib()); packageLib = new PackageLib(); globals.load(packageLib); //globals.load(new Bit32Lib()); // not needed for 5.1 compatibility globals.load(new TableLib()); globals.load(new StringLib()); globals.load(new CoroutineLib()); globals.load(new JseMathLib()); globals.load(new JseIoLib()); globals.load(new JseOsLib()); globals.load(new LuajavaLib());
4445464748495051525354
public LuaInstance() throws AerospikeException { globals.load(new JseBaseLib()); packageLib = new PackageLib(); globals.load(packageLib); //globals.load(new Bit32Lib()); // not needed for 5.1 compatibility globals.load(new TableLib()); globals.load(new StringLib()); globals.load(new CoroutineLib()); globals.load(new JseMathLib()); globals.load(new JseIoLib()); globals.load(new JseOsLib());
151152153154155156157158159160161
table.set("isSubsting", isSubsting()); return table; } private LuaValue callParserFunction() { return new ThreeArgFunction() { @Override public LuaValue call(LuaValue frameId, LuaValue function, LuaValue args) { return null; } }; }
189190191192193194195196197198199
} }; } private LuaValue expandTemplate() { return new ThreeArgFunction() { @Override public LuaValue call(LuaValue frameId, LuaValue title, LuaValue args) { throw new UnsupportedOperationException("no implemented"); } };
238239240241242243244245246247248
} }; } private LuaValue newChildFrame() { return new ThreeArgFunction() { @Override public LuaValue call(LuaValue frameId, LuaValue title, LuaValue args) { return NIL; } };
100101102103104105106107108109110
} 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(); } }); }
179180181182183184185186187188189
} }; } private LuaValue preprocess() { return new TwoArgFunction() { @Override public LuaValue call(LuaValue frameId, LuaValue text) { Frame frame = getFrameById(frameId); return valueOf(model.render(text.checkjstring())); }
198199200201202203204205206207208
} }; } private LuaValue getExpandedArgument() { return new TwoArgFunction() { @Override public LuaValue call(LuaValue frameId, LuaValue name) { return getFrameById(frameId).getArgument(name.tojstring()); } };
333334335336337338339340341342343
public LuaValue getSetupOptions() { return new LuaTable(); } private void extendGlobals(final Globals globals) { globals.set("setfenv", new TwoArgFunction() { @Override public LuaValue call(LuaValue f, LuaValue env) { return f; } });