org.eclipse.xtext
Class GrammarToDot

java.lang.Object
  extended by org.eclipse.xtext.util.GraphvizDotBuilder
      extended by org.eclipse.xtext.GrammarToDot
Direct Known Subclasses:
ElementMatcherToDot, NFAToDot, TreeConstNFAToDot

public class GrammarToDot
extends GraphvizDotBuilder

Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.util.GraphvizDotBuilder
GraphvizDotBuilder.Digraph, GraphvizDotBuilder.Edge, GraphvizDotBuilder.Node, GraphvizDotBuilder.Props
 
Field Summary
protected  GrammarElementTitleSwitch aeSwitch
           
 
Fields inherited from class org.eclipse.xtext.util.GraphvizDotBuilder
log
 
Constructor Summary
GrammarToDot()
           
 
Method Summary
protected  GraphvizDotBuilder.Node drawAbstractElementTree(AbstractElement ele, GraphvizDotBuilder.Digraph d)
           
protected  GraphvizDotBuilder.Digraph drawGrammar(Grammar g, GraphvizDotBuilder.Digraph d)
           
protected  GraphvizDotBuilder.Props drawGrammarContainementEdge(AbstractElement container, AbstractElement child)
           
protected  GraphvizDotBuilder.Props drawObject(java.lang.Object obj)
           
protected  GraphvizDotBuilder.Digraph drawRule(AbstractRule rule, GraphvizDotBuilder.Digraph d)
           
protected  GraphvizDotBuilder.Node newNode(org.eclipse.emf.ecore.EObject obj, java.lang.String label)
           
 
Methods inherited from class org.eclipse.xtext.util.GraphvizDotBuilder
draw, draw, draw, draw, getGraphvizBinary, id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aeSwitch

protected GrammarElementTitleSwitch aeSwitch
Constructor Detail

GrammarToDot

public GrammarToDot()
Method Detail

drawAbstractElementTree

protected GraphvizDotBuilder.Node drawAbstractElementTree(AbstractElement ele,
                                                          GraphvizDotBuilder.Digraph d)

drawGrammar

protected GraphvizDotBuilder.Digraph drawGrammar(Grammar g,
                                                 GraphvizDotBuilder.Digraph d)

drawGrammarContainementEdge

protected GraphvizDotBuilder.Props drawGrammarContainementEdge(AbstractElement container,
                                                               AbstractElement child)

drawObject

protected GraphvizDotBuilder.Props drawObject(java.lang.Object obj)
Specified by:
drawObject in class GraphvizDotBuilder

drawRule

protected GraphvizDotBuilder.Digraph drawRule(AbstractRule rule,
                                              GraphvizDotBuilder.Digraph d)

newNode

protected GraphvizDotBuilder.Node newNode(org.eclipse.emf.ecore.EObject obj,
                                          java.lang.String label)