Examples of methodReturn()


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

    // CursorActivation - CursorResultSet getTargetResultSet()
    MethodBuilder getter = cb.newMethodBuilder(Modifier.PUBLIC,
      ClassName.CursorResultSet, "getTargetResultSet");

    getter.getField(targetResultSetField);
    getter.methodReturn();
    getter.complete();

    // This method is an implementation of the interface method
    // CursorActivation - CursorResultSet getCursorResultSet()
View Full Code Here

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

    getter = cb.newMethodBuilder(Modifier.PUBLIC,
      ClassName.CursorResultSet, "getCursorResultSet");

    getter.getField(cursorResultSetField);
    getter.methodReturn();
    getter.complete();
  }

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

      /* generates:
       *    return <joinClause.generate(acb)>;
       * and adds it to userExprFun
       */
      joinClause.generate(acb, userExprFun);
      userExprFun.methodReturn();

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

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

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

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

    // CursorActivation - CursorResultSet getTargetResultSet()
    MethodBuilder getter = cb.newMethodBuilder(Modifier.PUBLIC,
      ClassName.CursorResultSet, "getTargetResultSet");

    getter.getField(targetResultSetField);
    getter.methodReturn();
    getter.complete();

    // This method is an implementation of the interface method
    // CursorActivation - CursorResultSet getCursorResultSet()
View Full Code Here

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

    getter = cb.newMethodBuilder(Modifier.PUBLIC,
      ClassName.CursorResultSet, "getCursorResultSet");

    getter.getField(cursorResultSetField);
    getter.methodReturn();
    getter.complete();
  }

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

    mb.putField(field);

    /* Stuff the full expression into a return statement and add that to the
     * body of the new method.
     */
    mb.methodReturn();

    // complete the method
    mb.complete();

    /* Generate the call to the new method */
 
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.