org.sonar.colorizer
Class HtmlDecorator

java.lang.Object
  extended by org.sonar.channel.Channel<HtmlCodeBuilder>
      extended by org.sonar.colorizer.Tokenizer
          extended by org.sonar.colorizer.HtmlDecorator

public class HtmlDecorator
extends Tokenizer


Constructor Summary
HtmlDecorator(HtmlOptions options)
           
 
Method Summary
 boolean consume(CodeReader code, HtmlCodeBuilder codeBuilder)
          Tries to consume the character stream at the current reading cursor position (provided by the CodeReader).
static String getCss()
           
 String getTagAfter()
           
 String getTagBefore()
           
 String getTagBeginOfFile()
           
 String getTagEndOfFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlDecorator

public HtmlDecorator(HtmlOptions options)
Method Detail

getTagBeginOfFile

public String getTagBeginOfFile()

getTagEndOfFile

public String getTagEndOfFile()

getTagBefore

public String getTagBefore()

getTagAfter

public String getTagAfter()

consume

public boolean consume(CodeReader code,
                       HtmlCodeBuilder codeBuilder)
Description copied from class: Channel
Tries to consume the character stream at the current reading cursor position (provided by the CodeReader). If the character stream is consumed the method must return true and the OUTPUT object can be fed.

Specified by:
consume in class Channel<HtmlCodeBuilder>
Parameters:
code - the handle on the input character stream
codeBuilder - the OUTPUT that can be optionally fed by the Channel
Returns:
false if the Channel doesn't want to consume the character stream, true otherwise.

getCss

public static String getCss()


Copyright © 2009-2011 SonarSource. All Rights Reserved.