Examples of methodReturn()


Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

    // be executed directly as e0.
    MethodBuilder userExprFun = acb.newGeneratedFun("void", Modifier.PUBLIC);
    userExprFun.addThrownException("java.lang.Exception");
    methodCallBody.generate(acb, userExprFun);
    userExprFun.endStatement();
    userExprFun.methodReturn();
    userExprFun.complete();

    acb.pushGetResultSetFactoryExpression(mb);
    acb.pushMethodReference(mb, userExprFun); // first arg
    acb.pushThisAsActivation(mb); // arg 2
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

      /* Generate the code to get the primitive value */
      mb.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.DataValueDescriptor,
                value.getTypeCompiler().getPrimitiveMethodName(), primitiveTN, 0);

      mb.methodReturn();
      mb.complete();

      /* Generate the call to the new method, with the parameter */

      mbex.pushThis();
 
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

        // Add a method that indicates the maxium number of dynamic result sets.
        int maxDynamicResults = routineInfo.getMaxDynamicResultSets();
        if (maxDynamicResults > 0) {
          MethodBuilder gdr = acb.getClassBuilder().newMethodBuilder(Modifier.PUBLIC, "int", "getMaxDynamicResults");
          gdr.push(maxDynamicResults);
          gdr.methodReturn();
          gdr.complete();
        }

        // add a method to return all the dynamic result sets (unordered)
        MethodBuilder gdr = acb.getClassBuilder().newMethodBuilder(Modifier.PUBLIC, "java.sql.ResultSet[][]", "getDynamicResults");
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

     *    return <checkExpress.generate(ecb)>;
     * and adds it to userExprFun
     */

    checkConstraints.generateExpression(ecb, userExprFun);
    userExprFun.methodReturn();
   
    // we are done modifying userExprFun, complete it.
    userExprFun.complete();

    return userExprFun;
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

    else
    {
      leftOperand.generateExpression(acb, qualMethod);
    }

    qualMethod.methodReturn();
    qualMethod.complete();

    /* push an expression that evaluates to the GeneratedMethod */
    acb.pushMethodReference(mb, qualMethod);
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

       * since the restriction may simply be a boolean column or subquery
       * which returns a boolean.  For example:
       *    where booleanColumn
       */
      restriction.generate(acb, userExprFun);
      userExprFun.methodReturn();

      // we are done modifying userExprFun, complete it.
      userExprFun.complete();

         // restriction is used in the final result set as an access of the new static
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

    rmb.push(cursorName);
    rmb.push(preStmt.getObjectName());
    rmb.callMethod(VMOpcode.INVOKEVIRTUAL, ClassName.BaseActivation, "checkPositionedStatement",
            "void", 2);

    rmb.methodReturn();
    rmb.complete();
  }

  /**
   * Prints the sub-nodes of this object.  See QueryTreeNode.java for
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

      userExprFun.getField(psHolder);

      userExprFun.completeConditional();
    }

    userExprFun.methodReturn();



    // methodCall knows it is returning its value;
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

        // Add a method that indicates the maxium number of dynamic result sets.
        int maxDynamicResults = routineInfo.getMaxDynamicResultSets();
        if (maxDynamicResults > 0) {
          MethodBuilder gdr = acb.getClassBuilder().newMethodBuilder(Modifier.PUBLIC, "int", "getMaxDynamicResults");
          gdr.push(maxDynamicResults);
          gdr.methodReturn();
          gdr.complete();
        }

        // add a method to return all the dynamic result sets (unordered)
        MethodBuilder gdr = acb.getClassBuilder().newMethodBuilder(Modifier.PUBLIC, "java.sql.ResultSet[][]", "getDynamicResults");
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.methodReturn()

     
    // generate:
    // return fieldX;
    // and add to the end of exprFun's body.
    exprFun.getField(lf);
    exprFun.methodReturn();

    // we are done putting stuff in exprFun:
    exprFun.complete();

    return exprFun;
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.