Package org.keplerproject.luajava

Examples of org.keplerproject.luajava.LuaObject.call()


    L.openBase();
   
    L.LdoString(str);

    LuaObject func = L.getLuaObject("imprime");
    Object[] teste = func.call(new Object[] { "TESTANDO"}, 2);
    System.out.println(teste[0]);
    System.out.println(teste[1]);

    System.out.println("PROXY TEST :");
    Printable p = new ObjPrint();
View Full Code Here


    {
      LuaObject obj = (LuaObject) script;
      try
      {
        if(obj.isFunction() || obj.isUserdata() || obj.isTable())
          obj.call(new Object[] {});
      }
      catch(LuaException e)
      {
        throw new BSFException(e.getMessage());
      }
View Full Code Here

    {
      LuaObject obj = (LuaObject) expr;
      try
      {
        if(obj.isFunction() || obj.isUserdata() || obj.isTable())
          return obj.call(new Object[] {});
      }
      catch(LuaException e)
      {
        throw new BSFException("Couldn't eval source code at line " + lineNo + " and column " + columnNo);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.