Examples of Load


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

        .toString());
  }

  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,
View Full Code Here

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

    root.addNextBlock(branchA);
    root.addNextBlock(branchB);
    branchA.addNextBlock(joined);
    branchB.addNextBlock(joined);

    root.addOp(new Load(-1, var("this")));
    root.addOp(new Load(-1, var("root")));
    branchA.addOp(new Load(-1, var("A")));
    branchB.addOp(new Load(-1, var("B")));
    joined.addOp(new Load(-1, var("joined")));
    joined.addOp(new Invoke(-1, null, "void m(int, int, int)", asList(JavaType.INT,
        JavaType.INT, JavaType.INT), false, JavaType.VOID));

    List<Operation> operations = new Stack2Turing(root).translate();
    assertEquals(2, operations.size());
View Full Code Here

Examples of com.guokr.simbase.command.Load

        SimRegistry registry = new SimRegistry();

        registry.add("ping", new Ping());
        registry.add("info", new Info());
        registry.add("save", new Save());
        registry.add("load", new Load());
        registry.add("del", new Del());

        registry.add("bsave", new BSave());
        registry.add("bload", new BLoad());
        registry.add("blist", new BList());
View Full Code Here

Examples of lupos.engine.operators.singleinput.sparul.Load

      try {
        into = LiteralFactory.createURILiteralWithoutLazyLiteral("<" + node.jjtGetChild(1).toString() + ">");
      } catch (final Exception e) {
        System.err.println(e);
      }
    connection.connectAndSetAsNewOperatorConnection(new Load(cu, into, this.indexScanCreator.getDataset(), node.isSilent()));
    this.indexScanCreator.createEmptyIndexScanAndConnectWithRoot(connection.getOperatorIDTuple());
  }
View Full Code Here

Examples of net.sourceforge.ganttproject.resource.LoadDistribution.Load

     * Renders the list of loads in a single chart row
     * Preconditions: loads come from the same distribution and are ordered by
     * their time offsets
     */
    private void renderLoads(List/*<Load>*/ loads, int ypos) {
        Load prevLoad = null;
        Load curLoad = null;
        LinkedList/*<Offset>*/ offsets = getOffsets();
        String suffix = "";
        for (int curIndex=1; curIndex<loads.size() && offsets.getFirst()!=null; curIndex++) {
            curLoad = (Load) loads.get(curIndex);
            prevLoad = (Load) loads.get(curIndex-1);
View Full Code Here

Examples of net.sourceforge.ganttproject.resource.LoadDistribution.Load

     */
    private void buildTasksLoadsRectangles(List/*<Load>*/ partition, int ypos) {
        LinkedList/*<Offset>*/ offsets = getOffsets();
        Iterator/*<Load>*/ loads = partition.iterator();
        while (loads.hasNext() && offsets.getFirst()!=null) {
            final Load nextLoad = (Load) loads.next();
            final Date nextStart = nextLoad.startDate;
            final Date nextEnd = nextLoad.endDate;

            Rectangle nextRect = createRectangle(offsets, nextStart, nextEnd, ypos);
            if (nextRect==null) {
View Full Code Here

Examples of org.allspice.bytecode.instructions.Load

    cd = cd.addField(fd) ;
    {
      Var x = new Var(1,new TypeName(type)) ;
      MethodDef md = new MethodDef(TypeName.VOID,"setFoo",x) ;
      md = md.addInstructions(
          new Load(new Var(0,new TypeName("TestClass"))),
          new Load(x),
          new Store(new FieldRef(cd.name,new TypeName(type),"foo")),
          new Return(TypeCode.VOID)
          ) ;
      cd = cd.addMethod(md) ;
    }
    {
      MethodDef md = new MethodDef(new TypeName(type),"getFoo") ;
      md = md.addInstructions(
          new Load(new Var(0,new TypeName("TestClass"))),
          new Load(new FieldRef(cd.name,new TypeName(type),"foo")),
          new Return(TypeCode.getType(type))
          ) ;
      cd = cd.addMethod(md) ;
    }
    return cd ;
View Full Code Here

Examples of org.allspice.bytecode.instructions.Load

    ClassDef cd = makeClassDef() ;
    Var x = new Var(1,new TypeName(type)) ;
    Var y = new Var(i1,new TypeName(type)) ;
    MethodDef md = new MethodDef(TypeName.INT,"meth",x,y) ;
    md = md.addInstructions(
        new Load(x),
        new Load(y),
        new Compare(TypeCode.getType(type)),
        new Return(TypeCode.INT)
        ) ;
    return cd.addMethod(md)
  }
View Full Code Here

Examples of org.allspice.bytecode.instructions.Load

  public ClassDef defadd(Number inc) {
    ClassDef cd = makeClassDef() ;
    Var x = new Var(1,new TypeName("int[]")) ;
    MethodDef md = new MethodDef(TypeName.VOID,"meth",x) ;
    md = md.addInstructions(
        new Load(x),
        new Const(0),
        new Increment(new ArrLValue(TypeName.INT),inc),
        new Return(TypeCode.VOID)
        ) ;
    return cd.addMethod(md)
View Full Code Here

Examples of org.allspice.bytecode.instructions.Load

    ClassDef cd = makeClassDef() ;
    Var x = new Var(i1,new TypeName(type)) ;
    Var y = new Var(i2,new TypeName(type)) ;
    MethodDef md = new MethodDef(new TypeName(ret),"meth",x,y) ;
    md = md.addInstructions(
        new Load(x),
        new Load(y),
        new Divide(TypeCode.getType(type)),
        new Return(TypeCode.getType(ret))
        ) ;
    return cd.addMethod(md)
  }
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.