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 | stlibLibrary 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(ATNState startState) | 
| String | getDOT(ATNState startState,
      boolean isLexer) | 
| String | getDOT(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(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(ATNState s) | 
| protected String | getStateLabel(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(ATNState startState, String[] ruleNames, boolean isLexer)
protected String getEdgeLabel(String label)
Copyright © 1992–2020 ANTLR. All rights reserved.