Examples of JavaFunction


Examples of org.h2.expression.JavaFunction

            }
            argList.add(readExpression());
        }
        args = new Expression[numArgs];
        argList.toArray(args);
        JavaFunction func = new JavaFunction(functionAlias, args);
        return func;
    }
View Full Code Here

Examples of org.h2.expression.JavaFunction

                FunctionAlias f = findFunctionAlias(Constants.SCHEMA_MAIN, "PG_GET_OID");
                if (f == null) {
                    throw getSyntaxError();
                }
                Expression[] args = { r };
                JavaFunction func = new JavaFunction(f, args);
                r = func;
            } else {
                Column col = parseColumnWithType(null);
                Function function = Function.getFunction(database, "CAST");
                function.setDataType(col);
View Full Code Here

Examples of org.h2.expression.JavaFunction

            }
            argList.add(readExpression());
        }
        args = new Expression[numArgs];
        argList.toArray(args);
        JavaFunction func = new JavaFunction(functionAlias, args);
        return func;
    }
View Full Code Here

Examples of org.h2.expression.JavaFunction

                FunctionAlias f = findFunctionAlias(Constants.SCHEMA_MAIN, "PG_GET_OID");
                if (f == null) {
                    throw getSyntaxError();
                }
                Expression[] args = { r };
                JavaFunction func = new JavaFunction(f, args);
                r = func;
            } else {
                Column col = parseColumnWithType(null);
                Function function = Function.getFunction(database, "CAST");
                function.setDataType(col);
View Full Code Here

Examples of org.h2.expression.JavaFunction

            }
            argList.add(readExpression());
        }
        args = new Expression[numArgs];
        argList.toArray(args);
        JavaFunction func = new JavaFunction(functionAlias, args);
        return func;
    }
View Full Code Here

Examples of org.h2.expression.JavaFunction

                FunctionAlias f = findFunctionAlias(Constants.SCHEMA_MAIN, "PG_GET_OID");
                if (f == null) {
                    throw getSyntaxError();
                }
                Expression[] args = { r };
                JavaFunction func = new JavaFunction(f, args);
                r = func;
            } else {
                Column col = parseColumnWithType(null);
                Function function = Function.getFunction(database, "CAST");
                function.setDataType(col);
View Full Code Here

Examples of org.h2.expression.JavaFunction

            }
            argList.add(readExpression());
        }
        args = new Expression[numArgs];
        argList.toArray(args);
        JavaFunction func = new JavaFunction(functionAlias, args);
        return func;
    }
View Full Code Here

Examples of org.h2.expression.JavaFunction

                FunctionAlias f = findFunctionAlias(Constants.SCHEMA_MAIN, "PG_GET_OID");
                if (f == null) {
                    throw getSyntaxError();
                }
                Expression[] args = { r };
                JavaFunction func = new JavaFunction(f, args);
                r = func;
            } else {
                Column col = parseColumn(null);
                Function function = Function.getFunction(database, "CAST");
                function.setDataType(col);
View Full Code Here

Examples of org.keplerproject.luajava.JavaFunction

 
  public TestClass(LuaState L)
  {
    this.Lf = L;
   
    jf = new JavaFunction( L ) {
    public int execute()
    {
      this.L.pushString("Returned String");
      System.out.println("Printing from Java Function");
      return 1;
View Full Code Here

Examples of org.keplerproject.luajava.JavaFunction

  {
    getLibTable(L);

    L.pushString("example");

    L.pushJavaFunction(new JavaFunction(L) {
      /**
       * Example for loadLib.
       * Prints the time and the first parameter, if any.
       */
      public int execute() throws LuaException
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.