public class HtmlBeautifier<T extends Event> extends HologramVisitor<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Stack<java.lang.String> |
m_parts
The stack that will contain the parts of the string
|
protected static boolean |
s_isWindows
Static variable to check if we are running in Windows.
|
| Constructor and Description |
|---|
HtmlBeautifier() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
beautify(Operator<T> op)
Beautifies an operator
|
static java.lang.String |
beautifySymbol(Operator<?> op)
Prints a "beautified" symbol for an operator, for
the purpose of displaying in the tree
|
static java.lang.String |
beautifySymbol(Operator<?> op,
boolean unicode) |
static java.lang.String |
beautifyValue(Operator.Value v) |
static java.lang.String |
beautifyValue(Operator.Value v,
boolean unicode) |
java.lang.String |
getString() |
void |
visit(Operator<T> op,
int count) |
backtrack, backtrack, visitprotected static final transient boolean s_isWindows
protected java.util.Stack<java.lang.String> m_parts
public java.lang.String getString()
public java.lang.String beautify(Operator<T> op)
op - The operatorpublic static java.lang.String beautifyValue(Operator.Value v)
public static java.lang.String beautifyValue(Operator.Value v, boolean unicode)
public static java.lang.String beautifySymbol(Operator<?> op, boolean unicode)
public static java.lang.String beautifySymbol(Operator<?> op)
op - The operatorCopyright © Sylvain HallĂ©. All Rights Reserved.