Lines Matching refs:adaptor
80 def toDOT(self, tree, adaptor=None, treeST=_treeST, edgeST=_edgeST): argument
81 if adaptor is None:
82 adaptor = CommonTreeAdaptor()
87 self.toDOTDefineNodes(tree, adaptor, treeST)
90 self.toDOTDefineEdges(tree, adaptor, treeST, edgeST)
94 def toDOTDefineNodes(self, tree, adaptor, treeST, knownNodes=None): argument
101 n = adaptor.getChildCount(tree)
110 parentNodeST = self.getNodeST(adaptor, tree)
116 child = adaptor.getChild(tree, i)
120 nodeST = self.getNodeST(adaptor, child)
124 self.toDOTDefineNodes(child, adaptor, treeST, knownNodes)
127 def toDOTDefineEdges(self, tree, adaptor, treeST, edgeST): argument
131 n = adaptor.getChildCount(tree)
140 parentText = adaptor.getText(tree)
142 child = adaptor.getChild(tree, i)
143 childText = adaptor.getText(child)
151 self.toDOTDefineEdges(child, adaptor, treeST, edgeST)
154 def getNodeST(self, adaptor, t): argument
155 text = adaptor.getText(t)
174 def toDOT(tree, adaptor=None, treeST=DOTTreeGenerator._treeST, edgeST=DOTTreeGenerator._edgeST): argument
210 return gen.toDOT(tree, adaptor, treeST, edgeST)