|
||||||||||
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.ParameterizedBlock
org.eclipse.mylyn.internal.wikitext.confluence.core.block.ColorBlock
public class ColorBlock
Field Summary |
---|
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor |
---|
builder, markupLanguage, parser, state |
Constructor Summary | |
---|---|
ColorBlock()
|
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. |
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. |
protected void |
setOption(String option)
Set an option that is specified without a value. |
protected void |
setOption(String key,
String value)
Set an option with key and value pair |
Methods inherited from class org.eclipse.mylyn.internal.wikitext.confluence.core.block.ParameterizedBlock |
---|
setOptions |
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Block |
---|
clone, 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 |
Constructor Detail |
---|
public ColorBlock()
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 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()
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
protected void setOption(String option)
ParameterizedBlock
setOption
in class ParameterizedBlock
option
- the option to setParameterizedBlock.setOption(String, String)
protected void setOption(String key, String value)
ParameterizedBlock
setOption
in class ParameterizedBlock
key
- the key of the optionvalue
- the value of the optionParameterizedBlock.setOption(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |