|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylyn.wikitext.core.parser.markup.Processor
org.eclipse.mylyn.wikitext.core.parser.markup.Block
org.eclipse.mylyn.internal.wikitext.confluence.core.block.TableBlock
public class TableBlock
Table block, matches blocks that start with table.
or those that start with a table row.
Field Summary | |
---|---|
protected int |
blockLineCount
|
protected int |
builderLevel
|
protected int |
colCount
|
protected int |
headerColCount
|
protected boolean |
isHeaderRow
|
protected int |
rowCount
|
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor |
---|
builder, markupLanguage, parser, state |
Constructor Summary | |
---|---|
TableBlock()
|
Method Summary | |
---|---|
boolean |
beginNesting()
Indicate if block nesting should begin. |
boolean |
canStart(String line,
int lineOffset)
Indicate if the block can start with the given markup line at the provided offset. |
Block |
clone()
Clone the block including its state. |
protected boolean |
closeToLevel(org.eclipse.mylyn.internal.wikitext.confluence.core.block.TableBlock.State targetState)
|
int |
findCloseOffset(String line,
int lineOffset)
Indicate if the block can close on the given line at the given offset. |
boolean |
isNestingEnabled()
|
int |
processLineContent(String line,
int offset)
Process the given line of markup starting at the provided offset. |
void |
setClosed(boolean closed)
Cause the block to be closed. |
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Block |
---|
isClosed, processLine |
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor |
---|
getBuilder, getMarkupLanguage, getParser, getState, setParser, setState |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int blockLineCount
protected int builderLevel
protected int rowCount
protected int headerColCount
protected int colCount
protected boolean isHeaderRow
Constructor Detail |
---|
public TableBlock()
Method Detail |
---|
public int processLineContent(String line, int offset)
Block
processLineContent
in class Block
line
- the markup line to processoffset
- the offset at which to start processing
public boolean canStart(String line, int lineOffset)
Block
cloning
and consumed in
#processLine(String, int, int)
. Calling this method must cause any previous state to be reset. Note that
it is valid for block implementations to refuse to start at non-zero offsets.
Implementations must be able to handle this method without having the processor state
initialized.
canStart
in class Block
line
- the line of markup to testlineOffset
- the offset at which the block should start processing
public void setClosed(boolean closed)
Block
builder
if necessary.
setClosed
in class Block
public boolean beginNesting()
Block
Block.processLineContent(String, int)
.
beginNesting
in class Block
Block.findCloseOffset(String, int)
public boolean isNestingEnabled()
public int findCloseOffset(String line, int lineOffset)
Block
findCloseOffset
in class Block
line
- the line of contentlineOffset
- the 0-based offset into the line
Block.beginNesting()
public Block clone()
Block
Block.canStart(String, int)
method is
called in order to implement the Template design pattern.
clone
in class Block
protected boolean closeToLevel(org.eclipse.mylyn.internal.wikitext.confluence.core.block.TableBlock.State targetState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |