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