Package org.apache.derby.iapi.services.compiler

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


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

    getter = cb.newMethodBuilder(Modifier.PUBLIC,
View Full Code Here


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

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

  /**
   * Updatable cursors
   * need to add a field and its initialization
View Full Code Here

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

    return userExprFun;
  }

  /**
 
View Full Code Here

       */
      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
         // field holding a reference to this new method.
      // generates:
      //  ActivationClass.userExprFun
View Full Code Here

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

    {
      leftOperand.generateExpression(acb, qualMethod);
    }

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

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

View Full Code Here

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

    getter = cb.newMethodBuilder(Modifier.PUBLIC,
View Full Code Here

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

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

  /**
   * Updatable cursors
   * need to add a field and its initialization
View Full Code Here

      /* 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();
      mbex.swap(); // caller pushed out parameter
View Full Code Here

     * body of the new method.
     */
    mb.methodReturn();

    // complete the method
    mb.complete();

    /* Generate the call to the new method */
    mbex.pushThis();
    mbex.callMethod(VMOpcode.INVOKEVIRTUAL, (String) null, mb.getName(), ClassName.DataValueDescriptor, 0);
  }
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.