Home | History | Annotate | Download | only in parser

Lines Matching refs:Block

354    * A Block represents a region of a html tree that
355 * 1) is well-formed, i.e. for each node in the block, all its descendants
356 * are also contained in the block. So it's safe to wrap the region
360 public static class Block {
364 /* The ending node (non-inclusive to the block) */
370 * We may create multiple blocks if one single well-formed Block cannot be
377 * @return a list of 0 or more Block objects, never null
379 public ArrayList<Block> createBlocks(int textStart, int textEnd, int minNode, int maxNode) {
381 ArrayList<Block> blocks = new ArrayList<Block>();
386 debug("Creating block: " +
392 // Split up the block [start, end) into one or more blocks that
424 debug("Forcing new block: " + n + " (" + nBegin + " " + nEnd +
427 Block b = new Block();
436 // Last block
438 Block b = new Block();
446 Block b = blocks.get(i);
447 debug("Block " + i + "/" + blocks.size() + ": " +
457 * Checks if a block can begin starting from a node position
483 * Returns the start of a block given a text-pos
503 * Returns the end of a block given a text-pos
558 * <pre> block.
611 * <pre> block.
764 // We're in a <pre> block. Split the text into lines, and append