org.sonar.api.web
Class CodeColorizerFormat

java.lang.Object
  extended by org.sonar.api.web.CodeColorizerFormat
All Implemented Interfaces:
Extension, ServerComponent, ServerExtension
Direct Known Subclasses:
JavaColorizerFormat

public abstract class CodeColorizerFormat
extends Object
implements ServerExtension

Extend the library sonar-colorizer to support new languages. By default only Java sources are colorized in Sonar.

Since:
1.12

Constructor Summary
protected CodeColorizerFormat(String languageKey)
           
 
Method Summary
 boolean equals(Object o)
           
 String getLanguageKey()
           
abstract  List<Tokenizer> getTokenizers()
          sonar-colorizer tokenizers for HTML output.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeColorizerFormat

protected CodeColorizerFormat(String languageKey)
Parameters:
languageKey - the unique sonar key. Not null.
Method Detail

getLanguageKey

public final String getLanguageKey()

getTokenizers

public abstract List<Tokenizer> getTokenizers()
sonar-colorizer tokenizers for HTML output.

Returns:
a not null list (empty if no tokenizers)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2011 SonarSource. All Rights Reserved.