org.sonar.api.web
Class CodeColorizerFormat
java.lang.Object
org.sonar.api.web.CodeColorizerFormat
- All Implemented Interfaces:
- Extension, ServerComponent, ServerExtension
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
CodeColorizerFormat
protected CodeColorizerFormat(String languageKey)
- Parameters:
languageKey
- the unique sonar key. Not null.
getLanguageKey
public final String getLanguageKey()
getTokenizers
public abstract List<org.sonar.colorizer.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-2014 SonarSource. All Rights Reserved.