public class HtmlCodeBuilder extends Object implements Appendable
| Constructor and Description |
|---|
HtmlCodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
void |
appendWithoutTransforming(String htmlTag) |
StringBuilder |
getColorizedCode() |
Object |
getVariable(Object key)
Get a stateful variable.
|
Object |
getVariable(Object key,
Object defaultValue)
Get a stateful variable.
|
Map |
getVariables()
All stateful variables
|
void |
setVariable(Object key,
Object value)
Save a stateful variable.
|
String |
toString() |
public HtmlCodeBuilder()
public Appendable append(CharSequence csq)
append in interface Appendablepublic Appendable append(char c)
append in interface Appendablepublic Appendable append(CharSequence csq, int start, int end)
append in interface Appendablepublic void appendWithoutTransforming(String htmlTag)
public StringBuilder getColorizedCode()
public void setVariable(Object key, Object value)
key - can NOT be nullvalue - can be nullpublic Object getVariable(Object key)
public Object getVariable(Object key, Object defaultValue)
public Map getVariables()
Copyright © 2009-2012 SonarSource. All Rights Reserved.