Home | History | Annotate | Download | only in parser

Lines Matching defs:Block

317    * A Block represents a region of a html tree that
318 * 1) is well-formed, i.e. for each node in the block, all its descendants
319 * are also contained in the block. So it's safe to wrap the region
323 public static class Block {
327 /* The ending node (non-inclusive to the block) */
333 * We may create multiple blocks if one single well-formed Block cannot be
340 * @return a list of 0 or more Block objects, never null
342 public ArrayList<Block> createBlocks(int textStart, int textEnd, int minNode, int maxNode) {
344 ArrayList<Block> blocks = new ArrayList<Block>();
349 debug("Creating block: " +
355 // Split up the block [start, end) into one or more blocks that
387 debug("Forcing new block: " + n + " (" + nBegin + " " + nEnd +
390 Block b = new Block();
399 // Last block
401 Block b = new Block();
409 Block b = blocks.get(i);
410 debug("Block " + i + "/" + blocks.size() + ": " +
420 * Checks if a block can begin starting from a node position
446 * Returns the start of a block given a text-pos
466 * Returns the end of a block given a text-pos
521 * <pre> block.
691 // We're in a <pre> block. Split the text into lines, and append