Examples of methodReturn()


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

      userExprFun.getField(psHolder);

      userExprFun.completeConditional();
    }

    userExprFun.methodReturn();



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

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

       * which returns a boolean.  For example:
       *    where booleanColumn
       */

      searchClause.generateExpression(acb, userExprFun);
      userExprFun.methodReturn();


      /* PUSHCOMPILER
      userSB.newReturnStatement(searchClause.generateExpression(acb, userSB));
      */
 
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()

    // 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()

       * since the restriction may simply be a boolean column or subquery
       * which returns a boolean.  For example:
       *    where booleanColumn
       */
      restriction.generateExpression(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()

       * which returns a boolean.  For example:
       *    where booleanColumn
       */
      constantRestriction.generateExpression(acb, userExprFun);

      userExprFun.methodReturn();

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

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

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

  {
    MethodBuilder qualMethod = acb.newUserExprFun();

    /* Generate a method that returns that expression */
    acb.generateNull(qualMethod, operand.getTypeCompiler());
    qualMethod.methodReturn();
    qualMethod.complete();

    /* Return 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()

  {
    // create a constructor that just calls super. 
    MethodBuilder realConstructor =
      cb.newConstructorBuilder(Modifier.PUBLIC);
    realConstructor.callSuper();
    realConstructor.methodReturn();
    realConstructor.complete();

    constructor = cb.newMethodBuilder(Modifier.PUBLIC, "void", "postConstructor");
    constructor.addThrownException(ClassName.StandardException);
  }
View Full Code Here

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

        */
        if(mb.statementNumHitLimit(10))
        {
          MethodBuilder dmb = acb.newGeneratedFun(ClassName.ResultSet, Modifier.PRIVATE);
          dependentNodes[index].generate(acb,dmb); //generates the resultset expression
          dmb.methodReturn();
          dmb.complete();
          /* Generate the call to the new method */
          mb.pushThis();
          //second arg will be generated by this call
          mb.callMethod(VMOpcode.INVOKEVIRTUAL, (String) null, dmb.getName(), ClassName.ResultSet, 0);
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
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.