Examples of swap()


Examples of anvil.codec.Code.swap()

      int contextframe = pool.addMethodRef(context.TYPE_CONTEXT, "frame",
        "()Lanvil/script/StackFrame;");
      code.aload_first();
      code.invokevirtual(contextframe);
      code.swap();
      code.invokevirtual(pool.addMethodRef("anvil/script/StackFrame",
        "push", "(Lanvil/core/Any;)V"));

      _framelocal = code.addLocal();
      code.astore(_framelocal);
View Full Code Here

Examples of cc.sketchchair.sketch.SliceSlot.swap()

          if (!currentPlaneY.guide) {
            SliceSlot slot = new SliceSlot(slicePlane, slotPos,
                slotDir, (-splineWidth - offsetToEdge),
                SETTINGS.materialThickness);
            slot.swap();
            slot.setOnEdge(new Vec2D(0, 1));
           
if(crossSliceSelection.getCapType() != CrossSliceSelection.CAP_INSIDE)
  slot.makesEdge = true;
View Full Code Here

Examples of com.asakusafw.compiler.flow.processor.operator.CoGroupFlowFactory.swap()

    }

    @Override
    protected void describe() {
        CoGroupFlowFactory f = new CoGroupFlowFactory();
        Swap op = f.swap(in1);
        out1.add(op.r1);
    }
}
View Full Code Here

Examples of com.github.overengineer.container.proxy.HotSwappableContainer.swap()

                .add(ICyclicRef2.class, CyclicTest2.class)
                .add(ICyclicRef3.class, CyclicTest3.class);

        ICyclicRef c = container.get(ICyclicRef.class);

        container.swap(ICyclicRef.class, CyclicTestHot.class);

        assertEquals(69, c.calls());

    }
View Full Code Here

Examples of com.heatonresearch.aifh.genetic.genome.ArrayGenome.swap()

            final int temp = iswap1;
            iswap1 = iswap2;
            iswap2 = temp;
        }

        child.swap(iswap1, iswap2);
    }

}
View Full Code Here

Examples of com.mxgraph.model.mxGeometry.swap()

      if (geo != null)
      {
        geo = (mxGeometry) geo.clone();

        updateAlternateBounds(cell, geo, willCollapse);
        geo.swap();

        model.setGeometry(cell, geo);
      }
    }
  }
View Full Code Here

Examples of com.mxgraph.model.mxGeometry.swap()

      if (geo != null)
      {
        geo = (mxGeometry) geo.clone();

        updateAlternateBounds(cell, geo, willCollapse);
        geo.swap();

        model.setGeometry(cell, geo);
      }
    }
  }
View Full Code Here

Examples of com.mxgraph.model.mxGeometry.swap()

      if (geo != null)
      {
        geo = (mxGeometry) geo.clone();

        updateAlternateBounds(cell, geo, willCollapse);
        geo.swap();

        model.setGeometry(cell, geo);
      }
    }
  }
View Full Code Here

Examples of etc.aloe.processes.CrossValidationPrep.swap()

        System.out.println("swap");

        List<TestLabelable> items = new ArrayList<TestLabelable>(originalItems);

        CrossValidationPrep instance = new CrossValidationPrep();
        instance.swap(items, 0, items.size() - 1);

        assertEquals("size unchanged", originalItems.size(), items.size());
        assertEquals("first moved to last", originalItems.get(0), items.get(items.size() - 1));
        assertEquals("last moved to first", originalItems.get(originalItems.size() - 1), items.get(0));
    }
View Full Code Here

Examples of hudson.remoting.StandardOutputStream.swap()

                Constructor<FileDescriptor> c = FileDescriptor.class.getDeclaredConstructor(int.class);
                c.setAccessible(true);
                FileOutputStream fos = new FileOutputStream(c.newInstance(out));

                // swap it into channel so that it'll use the new file descriptor
                stdout.swap(fos);

                // close fd=1 (stdout) and duplicate fd=2 (stderr) into fd=1 (stdout)
                GNUCLibrary.LIBC.close(1);
                GNUCLibrary.LIBC.dup2(2,1);
                return true;
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.