|
||||||||||
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.ListBlock
public class ListBlock
List block, matches blocks that start with *
, #
or -
Field Summary | |
---|---|
protected int |
builderLevel
|
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor |
---|
builder, markupLanguage, parser, state |
Constructor Summary | |
---|---|
ListBlock()
|
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. |
int |
findCloseOffset(String line,
int lineOffset)
Indicate if the block can close on the given line at the given offset. |
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 builderLevel
Constructor Detail |
---|
public ListBlock()
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 Block clone()
Block
Block.canStart(String, int)
method is
called in order to implement the Template design pattern.
clone
in class Block
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 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |