public class Visitor extends DotBaseVisitor<java.lang.Object>
Modifier and Type | Class and Description |
---|---|
static class |
Visitor.Attributes |
static class |
Visitor.EdgeRHS |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
IOPGraph |
graph |
boolean |
isNew |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
static DotParser |
parseFile(java.lang.String file) |
static DotParser |
parseString(java.lang.String string) |
java.lang.Object |
visitA_list(DotParser.A_listContext ctx)
Visit a parse tree produced by
DotParser.a_list() . |
java.lang.Object |
visitAttr_list(DotParser.Attr_listContext ctx)
Visit a parse tree produced by
DotParser.attr_list() . |
java.lang.Object |
visitAttr_stmt(DotParser.Attr_stmtContext ctx)
Visit a parse tree produced by
DotParser.attr_stmt() . |
java.lang.Object |
visitEdge_stmt(DotParser.Edge_stmtContext ctx)
Visit a parse tree produced by
DotParser.edge_stmt() . |
java.lang.Object |
visitEdgeop(DotParser.EdgeopContext ctx)
Visit a parse tree produced by
DotParser.edgeop() . |
java.lang.Object |
visitEdgeRHS(DotParser.EdgeRHSContext ctx)
Visit a parse tree produced by
DotParser.edgeRHS() . |
java.lang.Object |
visitGraph(DotParser.GraphContext ctx)
Visit a parse tree produced by
DotParser.graph() . |
java.lang.Object |
visitNode_stmt(DotParser.Node_stmtContext ctx)
Visit a parse tree produced by
DotParser.node_stmt() . |
java.lang.Object |
visitSubgraph(DotParser.SubgraphContext ctx)
Visit a parse tree produced by
DotParser.subgraph() . |
visitId, visitNode_id, visitPort, visitStmt_list, visitStmt
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public static final boolean DEBUG
public final IOPGraph graph
public final boolean isNew
public Visitor(IOPGraph graph)
public static DotParser parseString(java.lang.String string)
public static DotParser parseFile(java.lang.String file)
public java.lang.Object visitGraph(DotParser.GraphContext ctx)
DotBaseVisitor
DotParser.graph()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGraph
in interface DotVisitor<java.lang.Object>
visitGraph
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitSubgraph(DotParser.SubgraphContext ctx)
DotBaseVisitor
DotParser.subgraph()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSubgraph
in interface DotVisitor<java.lang.Object>
visitSubgraph
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitAttr_stmt(DotParser.Attr_stmtContext ctx)
DotBaseVisitor
DotParser.attr_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAttr_stmt
in interface DotVisitor<java.lang.Object>
visitAttr_stmt
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitEdge_stmt(DotParser.Edge_stmtContext ctx)
DotBaseVisitor
DotParser.edge_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEdge_stmt
in interface DotVisitor<java.lang.Object>
visitEdge_stmt
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitEdgeRHS(DotParser.EdgeRHSContext ctx)
DotBaseVisitor
DotParser.edgeRHS()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEdgeRHS
in interface DotVisitor<java.lang.Object>
visitEdgeRHS
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitEdgeop(DotParser.EdgeopContext ctx)
DotBaseVisitor
DotParser.edgeop()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEdgeop
in interface DotVisitor<java.lang.Object>
visitEdgeop
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitNode_stmt(DotParser.Node_stmtContext ctx)
DotBaseVisitor
DotParser.node_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNode_stmt
in interface DotVisitor<java.lang.Object>
visitNode_stmt
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitAttr_list(DotParser.Attr_listContext ctx)
DotBaseVisitor
DotParser.attr_list()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAttr_list
in interface DotVisitor<java.lang.Object>
visitAttr_list
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic java.lang.Object visitA_list(DotParser.A_listContext ctx)
DotBaseVisitor
DotParser.a_list()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitA_list
in interface DotVisitor<java.lang.Object>
visitA_list
in class DotBaseVisitor<java.lang.Object>
ctx
- the parse treepublic static void main(java.lang.String[] args)