- java.lang.Object
-
- org.jgrapht.io.GmlBaseListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,GmlListener
class GmlBaseListener extends java.lang.Object implements GmlListener
This class provides an empty implementation ofGmlListener
, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description GmlBaseListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
enterGml(GmlParser.GmlContext ctx)
Enter a parse tree produced byGmlParser.gml()
.void
enterListKeyValue(GmlParser.ListKeyValueContext ctx)
Enter a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
enterNumberKeyValue(GmlParser.NumberKeyValueContext ctx)
Enter a parse tree produced by theNumberKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
enterStringKeyValue(GmlParser.StringKeyValueContext ctx)
Enter a parse tree produced by theStringKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
exitGml(GmlParser.GmlContext ctx)
Exit a parse tree produced byGmlParser.gml()
.void
exitListKeyValue(GmlParser.ListKeyValueContext ctx)
Exit a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
exitNumberKeyValue(GmlParser.NumberKeyValueContext ctx)
Exit a parse tree produced by theNumberKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
exitStringKeyValue(GmlParser.StringKeyValueContext ctx)
Exit a parse tree produced by theStringKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
void
visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
-
-
-
Method Detail
-
enterGml
public void enterGml(GmlParser.GmlContext ctx)
Enter a parse tree produced byGmlParser.gml()
.The default implementation does nothing.
- Specified by:
enterGml
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
exitGml
public void exitGml(GmlParser.GmlContext ctx)
Exit a parse tree produced byGmlParser.gml()
.The default implementation does nothing.
- Specified by:
exitGml
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
enterStringKeyValue
public void enterStringKeyValue(GmlParser.StringKeyValueContext ctx)
Enter a parse tree produced by theStringKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
enterStringKeyValue
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
exitStringKeyValue
public void exitStringKeyValue(GmlParser.StringKeyValueContext ctx)
Exit a parse tree produced by theStringKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
exitStringKeyValue
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
enterNumberKeyValue
public void enterNumberKeyValue(GmlParser.NumberKeyValueContext ctx)
Enter a parse tree produced by theNumberKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
enterNumberKeyValue
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
exitNumberKeyValue
public void exitNumberKeyValue(GmlParser.NumberKeyValueContext ctx)
Exit a parse tree produced by theNumberKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
exitNumberKeyValue
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
enterListKeyValue
public void enterListKeyValue(GmlParser.ListKeyValueContext ctx)
Enter a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
enterListKeyValue
in interfaceGmlListener
- Parameters:
ctx
- the parse tree
-
exitListKeyValue
public void exitListKeyValue(GmlParser.ListKeyValueContext ctx)
Exit a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
exitListKeyValue
in interfaceGmlListener
- 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
-
-