org.eclipse.mylyn.internal.wikitext.confluence.core.block
Class CodeBlock

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.parser.markup.Processor
      extended by org.eclipse.mylyn.wikitext.core.parser.markup.Block
          extended by org.eclipse.mylyn.internal.wikitext.confluence.core.block.ParameterizedBlock
              extended by org.eclipse.mylyn.internal.wikitext.confluence.core.block.AbstractConfluenceDelimitedBlock
                  extended by org.eclipse.mylyn.internal.wikitext.confluence.core.block.CodeBlock
All Implemented Interfaces:
Cloneable

public class CodeBlock
extends AbstractConfluenceDelimitedBlock

Author:
David Green

Field Summary
 
Fields inherited from class org.eclipse.mylyn.internal.wikitext.confluence.core.block.AbstractConfluenceDelimitedBlock
blockLineCount
 
Fields inherited from class org.eclipse.mylyn.wikitext.core.parser.markup.Processor
builder, markupLanguage, parser, state
 
Constructor Summary
CodeBlock()
           
 
Method Summary
protected  void beginBlock()
           
protected  void endBlock()
           
protected  void handleBlockContent(String content)
           
protected  void resetState()
           
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.AbstractConfluenceDelimitedBlock
canStart, processLineContent, setClosed
 
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
beginNesting, clone, findCloseOffset, 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

CodeBlock

public CodeBlock()
Method Detail

beginBlock

protected void beginBlock()
Specified by:
beginBlock in class AbstractConfluenceDelimitedBlock

handleBlockContent

protected void handleBlockContent(String content)
Specified by:
handleBlockContent in class AbstractConfluenceDelimitedBlock

endBlock

protected void endBlock()
Specified by:
endBlock in class AbstractConfluenceDelimitedBlock

resetState

protected void resetState()
Overrides:
resetState in class AbstractConfluenceDelimitedBlock

setOption

protected void setOption(String key,
                         String value)
Description copied from class: ParameterizedBlock
Set an option with key and value pair

Specified by:
setOption in class ParameterizedBlock
Parameters:
key - the key of the option
value - the value of the option
See Also:
ParameterizedBlock.setOption(String)

setOption

protected void setOption(String option)
Description copied from class: ParameterizedBlock
Set an option that is specified without a value. The default implementation does nothing.

Overrides:
setOption in class ParameterizedBlock
Parameters:
option - the option to set
See Also:
ParameterizedBlock.setOption(String, String)


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.