| java.lang.Object org.antlr.tool.DOTGenerator
DOTGenerator | public class DOTGenerator (Code) | | The DOT (part of graphviz) generation aspect.
|
STRIP_NONREDUCED_STATES | final public static boolean STRIP_NONREDUCED_STATES(Code) | | |
markedStates | protected Set markedStates(Code) | | To prevent infinite recursion when walking state machines, record
which states we've visited. Make a new set every time you start
walking in case you reuse this object.
|
stlib | public static StringTemplateGroup stlib(Code) | | Library of output templates; use format
|
DOTGenerator | public DOTGenerator(Grammar grammar)(Code) | | This aspect is associated with a grammar
|
getDOT | public String getDOT(State startState)(Code) | | Return a String containing a DOT description that, when displayed,
will show the incoming state machine visually. All nodes reachable
from startState will be included.
|
getEdgeLabel | protected String getEdgeLabel(Transition edge)(Code) | | Fix edge strings so they print out in DOT properly;
generate any gated predicates on edge too.
|
setArrowheadType | public void setArrowheadType(String arrowhead)(Code) | | |
walkCreatingDFADOT | protected void walkCreatingDFADOT(StringTemplate dot, DFAState s)(Code) | | Do a depth-first walk of the state machine graph and
fill a DOT description template. Keep filling the
states and edges attributes.
|
walkRuleNFACreatingDOT | protected void walkRuleNFACreatingDOT(StringTemplate dot, State s)(Code) | | Do a depth-first walk of the state machine graph and
fill a DOT description template. Keep filling the
states and edges attributes. We know this is an NFA
for a rule so don't traverse edges to other rules and
don't go past rule end state.
|
|
|