Examples of Block


Examples of org.apache.tapestry5.Block

    @Test
    public void object_methods_can_be_invoked()
    {
        PropertyConduit conduit = source.create(Block.class, "toString()");

        Block b = new Block()
        {
            @Override
            public String toString()
            {
                return "Do You Grok Ze Block?";
View Full Code Here

Examples of org.asciidoctor.ast.Block

        final List<AbstractBlock> blocks = this.document.blocks();

        for (int i = 0; i < blocks.size(); i++) {
            final AbstractBlock currentBlock = blocks.get(i);
            if(currentBlock instanceof Block) {
                Block block = (Block)currentBlock;
                List<String> lines = block.lines();
                if (lines.size() > 0 && lines.get(0).startsWith("$")) {
                    blocks.set(
                            i, convertToTerminalListing(block));
                           
                }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.dom.Block

      ASTNode node= (ASTNode) event.getOriginalValue();
      // check for ranges and add a placeholder for them
      while (nextInfo != null && node == nextInfo.getStartNode()) { // is this child the beginning of a range?
        nextInfo.updatePlaceholderSourceRanges(sourceRangeComputer);
       
        Block internalPlaceholder= nextInfo.getInternalPlaceholder();
        RewriteEvent newEvent;
        if (nextInfo.isMove()) {
          newEvent= new NodeRewriteEvent(internalPlaceholder, nextInfo.replacingNode); // remove or replace
        } else {
          newEvent= new NodeRewriteEvent(internalPlaceholder, internalPlaceholder); // unchanged
        }
        newChildEvents.add(newEvent);
        if (nextInfo.editGroup != null) {
          setEventEditGroup(newEvent, nextInfo.editGroup);
        }
       
        newChildrenStack.push(newChildEvents);
        topInfoStack.push(topInfo);
       
        newChildEvents= new ArrayList(childEvents.length);
        topInfo= nextInfo;
       
        nextInfo= rangeInfoIterator.hasNext() ? (NodeRangeInfo) rangeInfoIterator.next() : null;
      }
     
      newChildEvents.add(event);

      while (topInfo != null && node == topInfo.getEndNode()) {
        RewriteEvent[] placeholderChildEvents= (RewriteEvent[]) newChildEvents.toArray(new RewriteEvent[newChildEvents.size()]);
        Block internalPlaceholder= topInfo.getInternalPlaceholder();
        addEvent(internalPlaceholder, Block.STATEMENTS_PROPERTY, new ListRewriteEvent(placeholderChildEvents));
       
        newChildEvents= (List) newChildrenStack.pop();
        topInfo= (NodeRangeInfo) topInfoStack.pop();
      }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Block

        bracketBalance = 1; // pretend the brace was already there
    }
  } 
  // might be an initializer
  if (this.bracketBalance == 1){
    Block block = new Block(0);
    Parser parser = this.parser();
    block.sourceStart = parser.scanner.startPosition;
    Initializer init;
    if (parser.recoveredStaticInitializerStart == 0){
      init = new Initializer(block, ClassFileConstants.AccDefault);
View Full Code Here

Examples of org.axsl.fo.fo.Block

        if (generatedBy instanceof CharacterSequence) {
            final CharacterSequence character = (CharacterSequence) generatedBy;
            return character.traitHyphenationCharacter(this);
        } else {
            final NormalBlockArea blockArea = this.ancestorNormalBlockArea();
            final Block block = blockArea.traitGeneratedBy();
            return block.traitHyphenationCharacter(blockArea);
        }
    }
View Full Code Here

Examples of org.bigbluebutton.deskshare.client.blocks.Block

  }
 
  public void send(ByteArrayOutputStream videoData, boolean isKeyFrame) throws ConnectionException {
    int totalBlocks = blockManager.getColumnCount() * blockManager.getRowCount();
    for (int i = 1; i <= totalBlocks; i++) {
        Block block = blockManager.getBlock(i);
//        if (block.getEncodedBlock().length < 5) continue;
//        BlockVideoData blockData = new BlockVideoData(room, block.getPosition(), block.getEncodedBlock(), block.isKeyFrame());
//        try {
//          screenQ.put(blockData);
//        } catch (InterruptedException e) {
View Full Code Here

Examples of org.bukkit.block.Block

      LogHelper.showInfo("spawnerList#####[" + Utils.userFriendlyNames(Utils.implode(list, ", ")), sender, ChatColor.AQUA);
      return true;
    }

    if (args.length == 1){
      Block block = player.getTargetBlock(null, 30);
      if (block.getType() == Material.MOB_SPAWNER){
        String entityType = args[0];
        // Get the entity from the string
        EntityType entity = EntityType.fromName(entityType);
        // If the entity is not null and the list contains the entity
        // Then set the spawner to the entity type
        if (entity != null && list.contains(entity.getName())){
          CreatureSpawner spawner = (CreatureSpawner) block.getState();
          // Set the spawner type
          spawner.setSpawnedType(entity);
          LogHelper.showInfo("spawnerSuccess#####[" + Utils.userFriendlyNames(entity.getName()), sender, ChatColor.GREEN);
        } else {
          LogHelper.showInfo("spawnerInvalid", sender, ChatColor.RED);
View Full Code Here

Examples of org.cx4a.rsense.ruby.Block

        return args.isEmpty() ? null : args.toArray(new Vertex[0]);
    }

    public static Block setupCallBlock(Graph graph, Node iterNode) {
        Context context = graph.getRuntime().getContext();
        Block block = null;
        if (iterNode != null) {
            switch (iterNode.getNodeType()) {
            case ITERNODE: {
                IterNode inode = (IterNode) iterNode;
                DynamicScope scope = new DynamicScope(context.getCurrentScope().getModule(), context.getCurrentScope());
View Full Code Here

Examples of org.eclipse.dltk.ast.statements.Block

    int innerEnd = 0;
    if (body != null && !body.isEmpty()) {
      innerStart = body.get(0).sourceStart();
      innerEnd = body.get(body.size() - 1).sourceEnd();
    }
    Block inner = new Block(innerStart, innerEnd, body);
    block.acceptBody(inner, false);
    block.setRule(rule);
    block.setEnd(rc != null ? getBounds(rc)[1] : rule.sourceEnd());
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Block

     * Create a block builder for the method body.
     *
     * @return builder
     */
    public BlockBuilder createBlock() {
        Block block = m_ast.newBlock();
        m_method.setBody(block);
        return new BlockBuilder(m_source, 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.