- java.lang.Object
-
- org.jgrapht.nio.dot.DOTBaseListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,DOTListener
- Direct Known Subclasses:
DOTEventDrivenImporter.NotifyDOTListener
class DOTBaseListener extends java.lang.Object implements DOTListener
This class provides an empty implementation ofDOTListener
, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description DOTBaseListener()
-
Method Summary
-
-
-
Method Detail
-
enterGraph
public void enterGraph(DOTParser.GraphContext ctx)
Enter a parse tree produced byDOTParser.graph()
.The default implementation does nothing.
- Specified by:
enterGraph
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitGraph
public void exitGraph(DOTParser.GraphContext ctx)
Exit a parse tree produced byDOTParser.graph()
.The default implementation does nothing.
- Specified by:
exitGraph
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterCompoundStatement
public void enterCompoundStatement(DOTParser.CompoundStatementContext ctx)
Enter a parse tree produced byDOTParser.compoundStatement()
.The default implementation does nothing.
- Specified by:
enterCompoundStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitCompoundStatement
public void exitCompoundStatement(DOTParser.CompoundStatementContext ctx)
Exit a parse tree produced byDOTParser.compoundStatement()
.The default implementation does nothing.
- Specified by:
exitCompoundStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterGraphHeader
public void enterGraphHeader(DOTParser.GraphHeaderContext ctx)
Enter a parse tree produced byDOTParser.graphHeader()
.The default implementation does nothing.
- Specified by:
enterGraphHeader
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitGraphHeader
public void exitGraphHeader(DOTParser.GraphHeaderContext ctx)
Exit a parse tree produced byDOTParser.graphHeader()
.The default implementation does nothing.
- Specified by:
exitGraphHeader
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterGraphIdentifier
public void enterGraphIdentifier(DOTParser.GraphIdentifierContext ctx)
Enter a parse tree produced byDOTParser.graphIdentifier()
.The default implementation does nothing.
- Specified by:
enterGraphIdentifier
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitGraphIdentifier
public void exitGraphIdentifier(DOTParser.GraphIdentifierContext ctx)
Exit a parse tree produced byDOTParser.graphIdentifier()
.The default implementation does nothing.
- Specified by:
exitGraphIdentifier
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterStatement
public void enterStatement(DOTParser.StatementContext ctx)
Enter a parse tree produced byDOTParser.statement()
.The default implementation does nothing.
- Specified by:
enterStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitStatement
public void exitStatement(DOTParser.StatementContext ctx)
Exit a parse tree produced byDOTParser.statement()
.The default implementation does nothing.
- Specified by:
exitStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterIdentifierPairStatement
public void enterIdentifierPairStatement(DOTParser.IdentifierPairStatementContext ctx)
Enter a parse tree produced byDOTParser.identifierPairStatement()
.The default implementation does nothing.
- Specified by:
enterIdentifierPairStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitIdentifierPairStatement
public void exitIdentifierPairStatement(DOTParser.IdentifierPairStatementContext ctx)
Exit a parse tree produced byDOTParser.identifierPairStatement()
.The default implementation does nothing.
- Specified by:
exitIdentifierPairStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterAttributeStatement
public void enterAttributeStatement(DOTParser.AttributeStatementContext ctx)
Enter a parse tree produced byDOTParser.attributeStatement()
.The default implementation does nothing.
- Specified by:
enterAttributeStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitAttributeStatement
public void exitAttributeStatement(DOTParser.AttributeStatementContext ctx)
Exit a parse tree produced byDOTParser.attributeStatement()
.The default implementation does nothing.
- Specified by:
exitAttributeStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterAttributesList
public void enterAttributesList(DOTParser.AttributesListContext ctx)
Enter a parse tree produced byDOTParser.attributesList()
.The default implementation does nothing.
- Specified by:
enterAttributesList
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitAttributesList
public void exitAttributesList(DOTParser.AttributesListContext ctx)
Exit a parse tree produced byDOTParser.attributesList()
.The default implementation does nothing.
- Specified by:
exitAttributesList
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterAList
public void enterAList(DOTParser.AListContext ctx)
Enter a parse tree produced byDOTParser.aList()
.The default implementation does nothing.
- Specified by:
enterAList
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitAList
public void exitAList(DOTParser.AListContext ctx)
Exit a parse tree produced byDOTParser.aList()
.The default implementation does nothing.
- Specified by:
exitAList
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterEdgeStatement
public void enterEdgeStatement(DOTParser.EdgeStatementContext ctx)
Enter a parse tree produced byDOTParser.edgeStatement()
.The default implementation does nothing.
- Specified by:
enterEdgeStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitEdgeStatement
public void exitEdgeStatement(DOTParser.EdgeStatementContext ctx)
Exit a parse tree produced byDOTParser.edgeStatement()
.The default implementation does nothing.
- Specified by:
exitEdgeStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterNodeStatement
public void enterNodeStatement(DOTParser.NodeStatementContext ctx)
Enter a parse tree produced byDOTParser.nodeStatement()
.The default implementation does nothing.
- Specified by:
enterNodeStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitNodeStatement
public void exitNodeStatement(DOTParser.NodeStatementContext ctx)
Exit a parse tree produced byDOTParser.nodeStatement()
.The default implementation does nothing.
- Specified by:
exitNodeStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterNodeStatementNoAttributes
public void enterNodeStatementNoAttributes(DOTParser.NodeStatementNoAttributesContext ctx)
Enter a parse tree produced byDOTParser.nodeStatementNoAttributes()
.The default implementation does nothing.
- Specified by:
enterNodeStatementNoAttributes
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitNodeStatementNoAttributes
public void exitNodeStatementNoAttributes(DOTParser.NodeStatementNoAttributesContext ctx)
Exit a parse tree produced byDOTParser.nodeStatementNoAttributes()
.The default implementation does nothing.
- Specified by:
exitNodeStatementNoAttributes
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterNodeIdentifier
public void enterNodeIdentifier(DOTParser.NodeIdentifierContext ctx)
Enter a parse tree produced byDOTParser.nodeIdentifier()
.The default implementation does nothing.
- Specified by:
enterNodeIdentifier
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitNodeIdentifier
public void exitNodeIdentifier(DOTParser.NodeIdentifierContext ctx)
Exit a parse tree produced byDOTParser.nodeIdentifier()
.The default implementation does nothing.
- Specified by:
exitNodeIdentifier
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterPort
public void enterPort(DOTParser.PortContext ctx)
Enter a parse tree produced byDOTParser.port()
.The default implementation does nothing.
- Specified by:
enterPort
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitPort
public void exitPort(DOTParser.PortContext ctx)
Exit a parse tree produced byDOTParser.port()
.The default implementation does nothing.
- Specified by:
exitPort
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterSubgraphStatement
public void enterSubgraphStatement(DOTParser.SubgraphStatementContext ctx)
Enter a parse tree produced byDOTParser.subgraphStatement()
.The default implementation does nothing.
- Specified by:
enterSubgraphStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitSubgraphStatement
public void exitSubgraphStatement(DOTParser.SubgraphStatementContext ctx)
Exit a parse tree produced byDOTParser.subgraphStatement()
.The default implementation does nothing.
- Specified by:
exitSubgraphStatement
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterIdentifierPair
public void enterIdentifierPair(DOTParser.IdentifierPairContext ctx)
Enter a parse tree produced byDOTParser.identifierPair()
.The default implementation does nothing.
- Specified by:
enterIdentifierPair
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitIdentifierPair
public void exitIdentifierPair(DOTParser.IdentifierPairContext ctx)
Exit a parse tree produced byDOTParser.identifierPair()
.The default implementation does nothing.
- Specified by:
exitIdentifierPair
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterIdentifier
public void enterIdentifier(DOTParser.IdentifierContext ctx)
Enter a parse tree produced byDOTParser.identifier()
.The default implementation does nothing.
- Specified by:
enterIdentifier
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
exitIdentifier
public void exitIdentifier(DOTParser.IdentifierContext ctx)
Exit a parse tree produced byDOTParser.identifier()
.The default implementation does nothing.
- Specified by:
exitIdentifier
in interfaceDOTListener
- Parameters:
ctx
- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
enterEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
exitEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
The default implementation does nothing.
- Specified by:
visitTerminal
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
The default implementation does nothing.
- Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
-