Examples of LocalField


Examples of com.google.test.metric.LocalField

  public void testVariableFormatting() throws Exception {
    Type type = JavaType.fromJava("com.google.test.metric.example.MutableGlobalState." +
        "FinalGlobalExample$Gadget");
    FieldInfo field = new FieldInfo(null, "finalInstance", type, false, false, false);
    LocalField localField = new LocalField(new Variable(
        "com.google.test.metric.example.MutableGlobalState.FinalGlobalExample$" +
            "FinalGlobal.finalInstance",
        type, false, false), field);
    assertEquals("FinalGlobalExample$Gadget finalInstance", localField.getDescription());
  }
View Full Code Here

Examples of com.google.test.metric.LocalField

  }

  @Override
  public List<Variable> apply(List<Variable> input) {
    Variable instance = fieldInfo.isGlobal() ? null : input.get(0);
    return list(new LocalField(instance, fieldInfo));
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

    if(cascadeDelete)
    {
      parentResultSetId = targetTableDescriptor.getSchemaName() +
                             "." + targetTableDescriptor.getName();
      // Generate the code to build the array
      LocalField arrayField =
        acb.newFieldDeclaration(Modifier.PRIVATE, resultSetArrayType);
      mb.pushNewArray(ClassName.ResultSet, dependentNodes.length)// new ResultSet[size]
      mb.setField(arrayField);
      for(int index=0 ; index <  dependentNodes.length ; index++)
      {
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

  {
    int nargs = 0;
    String receiverType = null;

    /* Allocate an object for re-use to hold the result of the operator */
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, resultInterfaceType);

    receiver.generateExpression(acb, mb);
    if (operatorType == TRIM)
    {
      mb.push(trimType);
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

       // this sets up the method and the static field.
       MethodBuilder userExprFun = acb.newUserExprFun();

    /* Declare the field */
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);

    // Generate the code to create the row in the constructor
    genCreateRow(acb, field, "getValueRow", ClassName.ExecRow, size());

    ResultColumn rc;
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

      rowAllocatorType = ClassName.ExecRow;
    }
    numCols = size();

    /* Declare the field */
    LocalField lf = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);
    // Generate the code to create the row in the constructor
    genCreateRow(acb, lf, rowAllocatorMethod, rowAllocatorType, highestColumnNumber + 1);

    // now we fill in the body of the function

View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

    /* If this node is for an ungrouped aggregator,
     * then we generate a conditional
     * wrapper so that we only new the aggregator once.
     *    (fx == null) ? fx = new ... : fx
     */
    LocalField objectFieldLF = null;
    if (singleInstantiation)
    {
      /* Declare the field */
      objectFieldLF = acb.newFieldDeclaration(Modifier.PRIVATE, javaClassName);

View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

    mb.callMethod(VMOpcode.INVOKEINTERFACE,
            (String) null, methodName, methodType, argCount);

    String fieldType = getTypeCompiler().interfaceName();
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, fieldType);

    acb.generateDataValue(mb, getTypeCompiler(),
        getTypeServices().getCollationType(), field);
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

    // generates:
    //   java.lang.Object userExprFun( ) { }
    MethodBuilder userExprFun = ecb.newUserExprFun();

    /* Declare the field and load it with the current row */
    LocalField field = ecb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);
        userExprFun.pushThis();
        userExprFun.push( rsNumber );
        userExprFun.callMethod(VMOpcode.INVOKEVIRTUAL, ClassName.BaseActivation, "getCurrentRow", ClassName.Row, 1);
        userExprFun.putField( field );

View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.LocalField

       // this sets up the method and the static field.
       MethodBuilder userExprFun = acb.newUserExprFun();

    /* Declare the field */
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);

    // Generate the code to create the row in the constructor
    genCreateRow(acb, field, "getValueRow", ClassName.ExecRow, size());

    ResultColumn rc;
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.