Examples of Block


Examples of com.sun.tools.ws.processor.model.Block

                  returnTypeName = method.getReturnType().getType()
            .getName();
                }
          if (this.isWrapped(operation)) { // wrapped response
                Response response = operation.getResponse();
                    Block resBlock = response.getBodyBlocks().next();
                    returnTypeName = resBlock.getType().getJavaType().getName();
          }
          TypeInfo returnType = new TypeInfo();
          returnType.setFullName(returnTypeName);
          returnType.setName(ClassNameUtil
              .stripQualifier(returnTypeName));
          methodInfo.setReturnType(returnType);
         
          methodInfo.setWebMethodAnnotation(getWebMethodAnnotation(operation, method.getName()));
          methodInfo.setWebResultAnnotation(getWebResultAnnotation(operation));
          methodInfo.setSoapBindingAnnotation(getSOAPBindingAnnotation(operation));
         
          if (this.isWrapped(operation)) { // wrapped request parameter
                  Block reqBlock = operation.getRequest().getBodyBlocks().next();
                  String parameterTypeName = reqBlock.getType().getJavaType().getName();
                 
            ParameterInfo paramInfo = new ParameterInfo();
                  paramInfo.setName("request");
            // param type
            TypeInfo paramType = new TypeInfo();
View Full Code Here

Examples of de.lv.jvoxgl.world.entities.Block

   */
  public void updateChunk(){
    for(int cx=0;cx<world.getChunkWidth();cx++){
      for(int cy=0;cy<world.getChunkHeight();cy++){
        for(int cz=0;cz<world.getChunkDepth();cz++){
          Block block = blocks[cx][cy][cz];
          if(block == null)continue;
          if(block.getId() == 0)continue;
          this.renderer.addVertices(block.getVertices());
        }
      }
    }
    this.renderer.fill();
    this.setChanged(false);
View Full Code Here

Examples of edu.mit.blocks.codeblocks.Block

    /**
     * Updates the renderable block with the underlying block's before,
     * after, and plug connectors.
     */
    public void updateConnectors() {
        Block b = workspace.getEnv().getBlock(blockID);
        afterTag.setSocket(b.getAfterConnector());
        beforeTag.setSocket(b.getBeforeConnector());
        plugTag.setSocket(b.getPlug());
    }
View Full Code Here

Examples of eu.admire.dispel.statements.Block

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFinallyBlock(Block newFinallyBlock, NotificationChain msgs) {
    Block oldFinallyBlock = finallyBlock;
    finallyBlock = newFinallyBlock;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, StatementsPackage.TRY_BLOCK__FINALLY_BLOCK, oldFinallyBlock, newFinallyBlock);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of htsjdk.tribble.index.Block

        String idxPath = doStandardIndex(bedFile, "idx");

        Index idx = IndexFactory.loadIndex(idxPath);

        List<Block> blocks = idx.getBlocks("chr1", 100, 200);
        Block block = blocks.get(0);
        assertEquals("Unexpected start position ", 0, block.getStartPosition());

    }
View Full Code Here

Examples of hu.sztaki.ilab.longneck.process.block.Block

        // Create new kernel state, if record doesn't carry one
        if (kernelState == null || kernelState.isAfterProcessing()) {
            kernelState = newKernelState();
        }
       
        Block currentBlock;
        ExecutionFrame currentFrame = null;
       
        // Iterate sequence
        for (;;) {
            try {
                currentFrame = kernelState.getLastExecutionFrame();

                if (currentFrame.getHostBlock().hasPosition(currentFrame.getPosition())) {                    
                    currentBlock = currentFrame.getHostBlock().getBlocks().get(currentFrame.getPosition());

                    // If compound, go into it
                    if (currentBlock instanceof CompoundBlock) {
                        ExecutionFrame childFrame =
                                new ExecutionFrame((CompoundBlock) currentBlock, currentFrame);
                        kernelState.addLastExecutionFrame(childFrame);
                        currentFrame = childFrame;

                        // Apply block changes
                        currentBlock.apply(record, currentFrame.getVariables());
                       
                        // Startup changing record
                        if (currentFrame.isRecordchangehandler()) {
                            try {
                                record = ((RecordChangeHandler) currentFrame.getControl()).changeRecord(record);
                            } catch (NoMappingException e) {
                                // do nothing
                                /*  Error if no mapping was added to the given blockreference.
                                 *  We don't consider this as error, we simply use the original records.
                                 *  If we need to sign this event this is the right place.
                                 */
                            }
                        }

                        // Startup handlers
                        if (currentFrame.isStartHandler()) {
                            try {
                                ((StartHandler) currentFrame.getControl()).beforeChildren(kernelState, record);
                            } catch (RedirectException ex) {
                                handleRedirect(kernelState, ex);
                            }
                        }
                    }
                    else if (currentBlock instanceof BlockReference) {
                        ExecutionFrame childFrame = new ExecutionFrame(
                                (BlockReference) currentBlock, currentFrame);

                        kernelState.addLastExecutionFrame(childFrame);
                        currentFrame = childFrame;
                       
                        // Startup changing record
                        if (currentFrame.isRecordchangehandler()) {
                            try {
                                record = ((RecordChangeHandler) currentFrame.getControl()).changeRecord(record);
                            } catch (NoMappingException e) {
                                // do nothing
                                /*  Error if no mapping was added to the given blockreference.
                                 *  We don't consider this as error, we simply use the original records.
                                 *  If we need to sign this event this is the right place.
                                 */
                            }
                        }

                        // Startup handlers
                        if (currentFrame.isStartHandler()) {
                            try {
                                ((StartHandler) currentFrame.getControl()).beforeChildren(kernelState, record);
                            } catch (RedirectException ex) {
                                handleRedirect(kernelState, ex);
                            }
                        }
                    } else {
                        // Atomic block processing

                        if (currentBlock instanceof CloneRecord) {
                            // Clone the record
                            Record clone = ((CloneRecord) currentBlock).getClonedRecord(
                                    record, currentFrame.getVariables());

                            // Clone the current kernel state and increase getPosition()
                            KernelState cloneState = new KernelState(kernelState);
                            cloneState.increasePosition();
                            clone.setKernelState(cloneState);

                            localCloneQueue.add(clone);
                        } else {
                            // Apply block changes
                            currentBlock.apply(record, currentFrame.getVariables());
                        }

                        // Success handler for atomic blocks
                        if (currentFrame.isSuccessHandler() && currentBlock instanceof Atomic) {
                            try {
View Full Code Here

Examples of javara.world.physical.Block

        if (attrs.getValue("mass") != null)
          mass = Float.parseFloat(attrs.getValue("mass"));
        if (attrs.getValue("hologram") != null)
          isHologram = parseBoolean(attrs.getValue("hologram"));

        Block block = new Block(world, center, size, color, yaw, pitch, roll, mass, isHologram);
        world.addWorldObject(block);
      }
      else if (localName.equalsIgnoreCase("ramp")) {
        Vector3f base, top;
        ColorRGBA color;
View Full Code Here

Examples of jdave.Block

        public void hexStringCanBeParsed() {
            specify(Utils.hexStringToBytes("010203040506"), does.containExactly(new byte[] { 1, 2, 3, 4, 5, 6 }));
        }

        public void exceptionIsThrownIfInputContainsInvalidCharacters() {
            specify(new Block() {

                @Override
                public void run() throws Throwable {
                    specify(Utils.hexStringToBytes("hv312123123123"), does.equal(new byte[] {}));
                }
View Full Code Here

Examples of jp.co.nskint.uq.pd.signage.model.xml.Block

        Key id = TimeLineService.createNewKey();
        long tlid = id.getId();
        // ブロック情報の作成
        final String blockId = "0";
        Block block = cretateBlock(blockId, lid);

        // スケジュール情報の作成
        final String scheduleId = "0";
        Schedule schedule = cretateSchedule(scheduleId, blockId);
View Full Code Here

Examples of lombok.ast.Block

  public StatementsActions(Source source) {
    super(source);
  }
 
  public Node createBlock(List<Node> statements) {
    Block block = new Block();
    if (statements != null) for (Node s : statements) {
      if (s != null) block.rawContents().addToEnd(s);
    }
   
    return posify(block);
  }
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.