- java.lang.Object
-
- org.jgrapht.nio.dot.DOTBaseListener
-
- org.jgrapht.nio.dot.DOTEventDrivenImporter.NotifyDOTListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,DOTListener
- Enclosing class:
- DOTEventDrivenImporter
private class DOTEventDrivenImporter.NotifyDOTListener extends DOTBaseListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Deque<DOTEventDrivenImporter.State>
stack
private java.util.Deque<DOTEventDrivenImporter.SubgraphScope>
subgraphScopes
private java.util.Set<java.lang.String>
vertices
-
Constructor Summary
Constructors Constructor Description NotifyDOTListener()
-
Method Summary
-
Methods inherited from class org.jgrapht.nio.dot.DOTBaseListener
enterCompoundStatement, enterEveryRule, enterPort, enterStatement, exitCompoundStatement, exitEveryRule, exitPort, exitStatement, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
vertices
private java.util.Set<java.lang.String> vertices
-
subgraphScopes
private java.util.Deque<DOTEventDrivenImporter.SubgraphScope> subgraphScopes
-
stack
private java.util.Deque<DOTEventDrivenImporter.State> stack
-
-
Method Detail
-
enterGraph
public void enterGraph(DOTParser.GraphContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.graph()
.The default implementation does nothing.
- Specified by:
enterGraph
in interfaceDOTListener
- Overrides:
enterGraph
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitGraph
public void exitGraph(DOTParser.GraphContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.graph()
.The default implementation does nothing.
- Specified by:
exitGraph
in interfaceDOTListener
- Overrides:
exitGraph
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterGraphHeader
public void enterGraphHeader(DOTParser.GraphHeaderContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.graphHeader()
.The default implementation does nothing.
- Specified by:
enterGraphHeader
in interfaceDOTListener
- Overrides:
enterGraphHeader
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitGraphHeader
public void exitGraphHeader(DOTParser.GraphHeaderContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.graphHeader()
.The default implementation does nothing.
- Specified by:
exitGraphHeader
in interfaceDOTListener
- Overrides:
exitGraphHeader
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterGraphIdentifier
public void enterGraphIdentifier(DOTParser.GraphIdentifierContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.graphIdentifier()
.The default implementation does nothing.
- Specified by:
enterGraphIdentifier
in interfaceDOTListener
- Overrides:
enterGraphIdentifier
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitGraphIdentifier
public void exitGraphIdentifier(DOTParser.GraphIdentifierContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.graphIdentifier()
.The default implementation does nothing.
- Specified by:
exitGraphIdentifier
in interfaceDOTListener
- Overrides:
exitGraphIdentifier
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterAttributeStatement
public void enterAttributeStatement(DOTParser.AttributeStatementContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.attributeStatement()
.The default implementation does nothing.
- Specified by:
enterAttributeStatement
in interfaceDOTListener
- Overrides:
enterAttributeStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitAttributeStatement
public void exitAttributeStatement(DOTParser.AttributeStatementContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.attributeStatement()
.The default implementation does nothing.
- Specified by:
exitAttributeStatement
in interfaceDOTListener
- Overrides:
exitAttributeStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterAttributesList
public void enterAttributesList(DOTParser.AttributesListContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.attributesList()
.The default implementation does nothing.
- Specified by:
enterAttributesList
in interfaceDOTListener
- Overrides:
enterAttributesList
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitAttributesList
public void exitAttributesList(DOTParser.AttributesListContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.attributesList()
.The default implementation does nothing.
- Specified by:
exitAttributesList
in interfaceDOTListener
- Overrides:
exitAttributesList
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterAList
public void enterAList(DOTParser.AListContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.aList()
.The default implementation does nothing.
- Specified by:
enterAList
in interfaceDOTListener
- Overrides:
enterAList
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitAList
public void exitAList(DOTParser.AListContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.aList()
.The default implementation does nothing.
- Specified by:
exitAList
in interfaceDOTListener
- Overrides:
exitAList
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterEdgeStatement
public void enterEdgeStatement(DOTParser.EdgeStatementContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.edgeStatement()
.The default implementation does nothing.
- Specified by:
enterEdgeStatement
in interfaceDOTListener
- Overrides:
enterEdgeStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitEdgeStatement
public void exitEdgeStatement(DOTParser.EdgeStatementContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.edgeStatement()
.The default implementation does nothing.
- Specified by:
exitEdgeStatement
in interfaceDOTListener
- Overrides:
exitEdgeStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterIdentifierPairStatement
public void enterIdentifierPairStatement(DOTParser.IdentifierPairStatementContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.identifierPairStatement()
.The default implementation does nothing.
- Specified by:
enterIdentifierPairStatement
in interfaceDOTListener
- Overrides:
enterIdentifierPairStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitIdentifierPairStatement
public void exitIdentifierPairStatement(DOTParser.IdentifierPairStatementContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.identifierPairStatement()
.The default implementation does nothing.
- Specified by:
exitIdentifierPairStatement
in interfaceDOTListener
- Overrides:
exitIdentifierPairStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterNodeStatement
public void enterNodeStatement(DOTParser.NodeStatementContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.nodeStatement()
.The default implementation does nothing.
- Specified by:
enterNodeStatement
in interfaceDOTListener
- Overrides:
enterNodeStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitNodeStatement
public void exitNodeStatement(DOTParser.NodeStatementContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.nodeStatement()
.The default implementation does nothing.
- Specified by:
exitNodeStatement
in interfaceDOTListener
- Overrides:
exitNodeStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterNodeStatementNoAttributes
public void enterNodeStatementNoAttributes(DOTParser.NodeStatementNoAttributesContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.nodeStatementNoAttributes()
.The default implementation does nothing.
- Specified by:
enterNodeStatementNoAttributes
in interfaceDOTListener
- Overrides:
enterNodeStatementNoAttributes
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitNodeStatementNoAttributes
public void exitNodeStatementNoAttributes(DOTParser.NodeStatementNoAttributesContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.nodeStatementNoAttributes()
.The default implementation does nothing.
- Specified by:
exitNodeStatementNoAttributes
in interfaceDOTListener
- Overrides:
exitNodeStatementNoAttributes
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterNodeIdentifier
public void enterNodeIdentifier(DOTParser.NodeIdentifierContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.nodeIdentifier()
.The default implementation does nothing.
- Specified by:
enterNodeIdentifier
in interfaceDOTListener
- Overrides:
enterNodeIdentifier
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitNodeIdentifier
public void exitNodeIdentifier(DOTParser.NodeIdentifierContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.nodeIdentifier()
.The default implementation does nothing.
- Specified by:
exitNodeIdentifier
in interfaceDOTListener
- Overrides:
exitNodeIdentifier
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterSubgraphStatement
public void enterSubgraphStatement(DOTParser.SubgraphStatementContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.subgraphStatement()
.The default implementation does nothing.
- Specified by:
enterSubgraphStatement
in interfaceDOTListener
- Overrides:
enterSubgraphStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitSubgraphStatement
public void exitSubgraphStatement(DOTParser.SubgraphStatementContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.subgraphStatement()
.The default implementation does nothing.
- Specified by:
exitSubgraphStatement
in interfaceDOTListener
- Overrides:
exitSubgraphStatement
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterIdentifierPair
public void enterIdentifierPair(DOTParser.IdentifierPairContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.identifierPair()
.The default implementation does nothing.
- Specified by:
enterIdentifierPair
in interfaceDOTListener
- Overrides:
enterIdentifierPair
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitIdentifierPair
public void exitIdentifierPair(DOTParser.IdentifierPairContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.identifierPair()
.The default implementation does nothing.
- Specified by:
exitIdentifierPair
in interfaceDOTListener
- Overrides:
exitIdentifierPair
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
enterIdentifier
public void enterIdentifier(DOTParser.IdentifierContext ctx)
Description copied from class:DOTBaseListener
Enter a parse tree produced byDOTParser.identifier()
.The default implementation does nothing.
- Specified by:
enterIdentifier
in interfaceDOTListener
- Overrides:
enterIdentifier
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
exitIdentifier
public void exitIdentifier(DOTParser.IdentifierContext ctx)
Description copied from class:DOTBaseListener
Exit a parse tree produced byDOTParser.identifier()
.The default implementation does nothing.
- Specified by:
exitIdentifier
in interfaceDOTListener
- Overrides:
exitIdentifier
in classDOTBaseListener
- Parameters:
ctx
- the parse tree
-
-