Examples of GETFIELD


Examples of com.google.test.metric.method.op.stack.GetField

    assertEquals("[null.abc{java.lang.Object} <- 1{java.lang.Object}]", operations.toString());
  }

  public void testGetField() throws Exception {
    Block block = new Block("1");
    block.addOp(new GetField(-1, new FieldInfo(null, "src", OBJECT,
        false, true, false)));
    block.addOp(new PutField(-1, new FieldInfo(null, "dst", OBJECT,
        false, true, false)));

    List<Operation> operations = new Stack2Turing(block).translate();
View Full Code Here

Examples of com.google.test.metric.method.op.stack.GetField

  }

  public void testMethodInvocation() throws Exception {
    Block block = new Block("1");
    block.addOp(new Load(-1, var("methodThis"))); // this
    block.addOp(new GetField(-1, new FieldInfo(null, "p1", OBJECT,
        false, true, false)));
    block.addOp(new GetField(-1, new FieldInfo(null, "p2", OBJECT,
        false, true, false)));
    block.addOp(new Invoke(-1, null, "int methodA(int, int)", asList(JavaType.INT,
        JavaType.INT), false, OBJECT));
    block.addOp(new PutField(-1, new FieldInfo(null, "dst", OBJECT,
        false, true, false)));
View Full Code Here

Examples of com.google.test.metric.method.op.stack.GetField

        field = ownerClass.getField(fieldName);
      } catch (FieldNotFoundException e) {
        field = new FieldInfo(ownerClass, "FAKE:" + fieldName, JavaType
                .fromDesc(fieldDesc), false, isStatic, false);
      }
      block.addOp(new GetField(lineNumber, field));
    }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.GETFIELD

     
      il.append(DUP);

      // Get field from factory class
      il.append(ALOAD_0);
      il.append(new GETFIELD(
    cpg.addFieldref(className,
        var.getEscapedName(), varType.toSignature())));

      // Put field in record class
      il.append(new PUTFIELD(
View Full Code Here

Examples of java.io.ObjectInputStream.GetField

   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
   }
View Full Code Here

Examples of java.io.ObjectInputStream.GetField

   }
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
      // Restore the log
      log = Logger.getLogger(getClass());
   }
View Full Code Here

Examples of jbe.micro.GetField

    Execute.perform(new Add());
    Execute.perform(new Iinc());
    Execute.perform(new Ldc());
    Execute.perform(new BranchTaken());
    Execute.perform(new BranchNotTaken());
    Execute.perform(new GetField());
    Execute.perform(new GetStatic());
    Execute.perform(new Array());
    Execute.perform(new InvokeVirtual());
    Execute.perform(new InvokeStatic());
    Execute.perform(new InvokeInterface());
View Full Code Here

Examples of org.apache.bcel.generic.GETFIELD

      il.append(classGen.loadTranslet());
      if (classGen.isExternal()) {
    il.append(new CHECKCAST(cpg.addClass(className)));
      }
      il.append(DUP);
      il.append(new GETFIELD(cpg.addFieldref(className, "_dom",
               DOM_INTF_SIG)));

      // Create a new instance of a StringValueHandler
      int index = cpg.addMethodref(STRING_VALUE_HANDLER, "<init>", "()V");
      il.append(new NEW(cpg.addClass(STRING_VALUE_HANDLER)));
View Full Code Here

Examples of org.apache.bcel.generic.GETFIELD

  // DOM adapters containing a result tree are not initialised with
  // translet-type to DOM-type mapping. This must be done now for
  // XPath expressions and patterns to work for the iterator we create.
  il.append(classGen.loadTranslet()); // get names array
  il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,
                 NAMES_INDEX,
                 NAMES_INDEX_SIG)));
  il.append(classGen.loadTranslet()); // get namespaces array
  il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS,
                 NAMESPACE_INDEX,
                 NAMESPACE_INDEX_SIG)));
  // Pass the type mappings to the DOM adapter
  final int mapping = cpg.addInterfaceMethodref(DOM_INTF,
                  "setupMapping",
View Full Code Here

Examples of org.apache.bcel.generic.GETFIELD

  il.append(new PUSH(cpg, getStylesheet().getSystemId()));

  // Feck the rest of the parameters on the stack
  il.append(classGen.loadTranslet());
  il.append(DUP);
  il.append(new GETFIELD(domField));
  il.append(new INVOKESTATIC(docIdx));
    }
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.