Examples of place()


Examples of org.eclipse.jdt.internal.compiler.codegen.BranchLabel.place()

      BranchLabel jumpLabel = new BranchLabel(codeStream);
      codeStream.decrStackSize(1);
      codeStream.goto_(jumpLabel);
      falseLabel.place();
      codeStream.iconst_0();
      jumpLabel.place();
      codeStream.fieldAccess(Opcodes.OPC_putstatic, this.assertionSyntheticFieldBinding, null /* default declaringClass */);
    }
    // generate static fields/initializers/enum constants
    final FieldDeclaration[] fieldDeclarations = declaringType.fields;
    int sourcePosition = -1;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.BranchLabel.place()

    BranchLabel conditionLabel = new BranchLabel(codeStream);
    conditionLabel.tagBits |= BranchLabel.USED;
    this.breakLabel.initialize(codeStream);
    if (this.continueLabel == null) {
      // generate the condition (swapped for optimizing)
      conditionLabel.place();
      int conditionPC = codeStream.position;
      switch(this.kind) {
        case ARRAY :
          // inline the arraylength call
          // collectionVariable is already on execution stack
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.BranchLabel.place()

        case ARRAY :
          if (!hasEmptyAction || this.elementVariable.binding.resolvedPosition >= 0) {
            codeStream.iinc(this.indexVariable.resolvedPosition, 1);
          }
          // generate the condition
          conditionLabel.place();
          codeStream.load(this.indexVariable);
          codeStream.load(this.maxVariable);
          codeStream.if_icmplt(actionLabel);
          break;
        case RAW_ITERABLE :
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.codegen.BranchLabel.place()

          codeStream.if_icmplt(actionLabel);
          break;
        case RAW_ITERABLE :
        case GENERIC_ITERABLE :
          // generate the condition
          conditionLabel.place();
          codeStream.load(this.indexVariable);
          codeStream.invokeJavaUtilIteratorHasNext();
          codeStream.ifne(actionLabel);
          break;
      }
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.StructurePiece.place()

    final BoundingBox boundingBox = temple.getBoundingBox();
    y = getAverageHeight(w, x, z, (int) boundingBox.getXSize(), (int) boundingBox.getZSize());
    temple.setPosition(new Point(w, x, y, z));
    temple.setRotation(Quaternionf.fromAngleDegAxis(random.nextInt(4) * 90, 0, 1, 0));
    if (temple.canPlace()) {
      temple.place();
    }
  }

  private StructurePiece getTemple(Biome biome) {
    final StructurePiece temple;
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.StructurePiece.place()

    while (!activeBranches.isEmpty()) {
      final StructurePiece active = activeBranches.poll();
      final BoundingBox activeBox = active.getBoundingBox();
      if (!collides(activeBox, lastBoxes.remove(active), placed) && active.canPlace()
          && active.getPosition().getY() >= 10) {
        active.place();
        if (++count > size) {
          return;
        }
        placed.add(activeBox);
        final List<StructurePiece> next = active.getNextPieces();
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.StructurePiece.place()

    while (!activeBranches.isEmpty()) {
      final StructurePiece active = activeBranches.poll();
      final BoundingBox activeBox = active.getBoundingBox();
      if (!collides(activeBox, lastBoxes.remove(active), placed) && active.canPlace()
          && active.getPosition().getY() >= 10) {
        active.place();
        if (++count > size) {
          final List<StructurePiece> ends = new ArrayList<StructurePiece>();
          final Iterator<StructurePiece> iterator = activeBranches.iterator();
          while (iterator.hasNext()) {
            final StructurePiece stop = iterator.next();
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.StructurePiece.place()

    while (!activeBranches.isEmpty()) {
      final StructurePiece active = activeBranches.poll();
      final BoundingBox activeBox = active.getBoundingBox();
      if (!collides(activeBox, lastBoxes.remove(active), placed) && active.canPlace()
          && active.getPosition().getY() >= 10) {
        active.place();
        if (++count > size) {
          return;
        }
        placed.add(activeBox);
        final List<StructurePiece> next = active.getNextPieces();
View Full Code Here

Examples of ptolemy.actor.lib.gui.SequencePlotter.place()

        SequencePlotter plot = (SequencePlotter) toplevel
                .getEntity("Signal To Noise Ratio");

        JPanel plotPanel = new JPanel();
        plot.place(plotPanel);
        plotPanel.setBackground(null);

        JPanel appletPanel = new JPanel();
        appletPanel.setLayout(new BorderLayout());
        appletPanel.setBackground(null);
View Full Code Here

Examples of ptolemy.domains.sdf.lib.vq.ImageDisplay.place()

        //         displayPanel.add(prnPanel, BorderLayout.SOUTH);

        CompositeEntity toplevel = (CompositeEntity) _toplevel;
        ImageDisplay consumer = (ImageDisplay) toplevel.getEntity("Compressed");
        compressedPanel.add(new JLabel("Compressed"), BorderLayout.NORTH);
        consumer.place(compressedPanel);
        displayPanel.add(compressedPanel, BorderLayout.EAST);
        consumer.setBackground(null);

        ImageDisplay original = (ImageDisplay) toplevel.getEntity("Original");
        originalPanel.add(new JLabel("Original"), BorderLayout.NORTH);
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.