public class DOTGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
arrowhead
|
protected Grammar |
grammar
|
protected String |
rankdir
|
static STGroup |
stlib
Library of output templates; use
<attrname> format.
|
static boolean |
STRIP_NONREDUCED_STATES
|
| Constructor and Description |
|---|
DOTGenerator(Grammar
This aspect is associated with a grammar
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDOT(ATNState startState)
|
String |
getDOT(ATNState startState, boolean isLexer)
|
String |
getDOT(ATNState startState, String
Return a String containing a DOT description that, when displayed, will show the incoming state machine visually.
|
String |
getDOT(DFA dfa, boolean isLexer)
|
protected String |
getEdgeLabel(String
Fix edge strings so they print out in DOT properly; generate any gated predicates on edge too.
|
protected String |
getStateLabel(ATNState s)
|
protected String |
getStateLabel(DFAState s)
|
public static final boolean STRIP_NONREDUCED_STATES
protected Stringarrowhead
protected Stringrankdir
public static STGroup stlib
<attrname> format.
protected Grammargrammar
public DOTGenerator(Grammargrammar)
public StringgetDOT(DFA dfa, boolean isLexer)
protected StringgetStateLabel(DFAState s)
public StringgetDOT(ATNState startState)
public StringgetDOT(ATNState startState, boolean isLexer)
public StringgetDOT(ATNState startState, String [] ruleNames, boolean isLexer)
protected StringgetEdgeLabel(String label)
protected StringgetStateLabel(ATNState s)