java.lang.Object
org.jgrapht.nio.gml.GmlBaseListener
org.jgrapht.nio.gml.GmlEventDrivenImporter.NotifyGmlListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,GmlListener
- Enclosing class:
GmlEventDrivenImporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private boolean
private boolean
private boolean
private int
private int
private static final String
private Integer
private List
<GmlEventDrivenImporter.Singleton> private static final String
private Integer
private StringBuilder
private static final String
private Integer
private Double
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced byGmlParser.gml()
.void
Enter a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
Enter a parse tree produced by theNumberKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
Enter a parse tree produced by theStringKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
Exit a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.void
private Attribute
parseNumberAttribute
(String value) Methods inherited from class org.jgrapht.nio.gml.GmlBaseListener
enterEveryRule, exitEveryRule, exitGml, exitNumberKeyValue, exitStringKeyValue, visitErrorNode, visitTerminal
-
Field Details
-
NODE
- See Also:
-
EDGE
- See Also:
-
GRAPH
- See Also:
-
WEIGHT
- See Also:
-
ID
- See Also:
-
SOURCE
- See Also:
-
TARGET
- See Also:
-
insideGraph
private boolean insideGraph -
insideNode
private boolean insideNode -
insideEdge
private boolean insideEdge -
level
private int level -
nodeId
-
sourceId
-
targetId
-
weight
-
attributes
-
stringBuffer
-
maxNodeId
private int maxNodeId -
singletons
-
-
Constructor Details
-
NotifyGmlListener
private NotifyGmlListener()
-
-
Method Details
-
notifySingletons
public void notifySingletons() -
enterGml
Description copied from class:GmlBaseListener
Enter a parse tree produced byGmlParser.gml()
.The default implementation does nothing.
- Specified by:
enterGml
in interfaceGmlListener
- Overrides:
enterGml
in classGmlBaseListener
- Parameters:
ctx
- the parse tree
-
enterNumberKeyValue
Description copied from class:GmlBaseListener
Enter a parse tree produced by theNumberKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
enterNumberKeyValue
in interfaceGmlListener
- Overrides:
enterNumberKeyValue
in classGmlBaseListener
- Parameters:
ctx
- the parse tree
-
enterListKeyValue
Description copied from class:GmlBaseListener
Enter a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
enterListKeyValue
in interfaceGmlListener
- Overrides:
enterListKeyValue
in classGmlBaseListener
- Parameters:
ctx
- the parse tree
-
exitListKeyValue
Description copied from class:GmlBaseListener
Exit a parse tree produced by theListKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
exitListKeyValue
in interfaceGmlListener
- Overrides:
exitListKeyValue
in classGmlBaseListener
- Parameters:
ctx
- the parse tree
-
enterStringKeyValue
Description copied from class:GmlBaseListener
Enter a parse tree produced by theStringKeyValue
labeled alternative inGmlParser.keyValuePair()
.The default implementation does nothing.
- Specified by:
enterStringKeyValue
in interfaceGmlListener
- Overrides:
enterStringKeyValue
in classGmlBaseListener
- Parameters:
ctx
- the parse tree
-
parseNumberAttribute
-