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 Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate booleanprivate intprivate intprivate static final Stringprivate Integerprivate List<GmlEventDrivenImporter.Singleton> private static final Stringprivate Integerprivate StringBuilderprivate static final Stringprivate Integerprivate Doubleprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnter a parse tree produced byGmlParser.gml().voidEnter a parse tree produced by theListKeyValuelabeled alternative inGmlParser.keyValuePair().voidEnter a parse tree produced by theNumberKeyValuelabeled alternative inGmlParser.keyValuePair().voidEnter a parse tree produced by theStringKeyValuelabeled alternative inGmlParser.keyValuePair().voidExit a parse tree produced by theListKeyValuelabeled alternative inGmlParser.keyValuePair().voidprivate AttributeparseNumberAttribute(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:GmlBaseListenerEnter a parse tree produced byGmlParser.gml().The default implementation does nothing.
- Specified by:
enterGmlin interfaceGmlListener- Overrides:
enterGmlin classGmlBaseListener- Parameters:
ctx- the parse tree
-
enterNumberKeyValue
Description copied from class:GmlBaseListenerEnter a parse tree produced by theNumberKeyValuelabeled alternative inGmlParser.keyValuePair().The default implementation does nothing.
- Specified by:
enterNumberKeyValuein interfaceGmlListener- Overrides:
enterNumberKeyValuein classGmlBaseListener- Parameters:
ctx- the parse tree
-
enterListKeyValue
Description copied from class:GmlBaseListenerEnter a parse tree produced by theListKeyValuelabeled alternative inGmlParser.keyValuePair().The default implementation does nothing.
- Specified by:
enterListKeyValuein interfaceGmlListener- Overrides:
enterListKeyValuein classGmlBaseListener- Parameters:
ctx- the parse tree
-
exitListKeyValue
Description copied from class:GmlBaseListenerExit a parse tree produced by theListKeyValuelabeled alternative inGmlParser.keyValuePair().The default implementation does nothing.
- Specified by:
exitListKeyValuein interfaceGmlListener- Overrides:
exitListKeyValuein classGmlBaseListener- Parameters:
ctx- the parse tree
-
enterStringKeyValue
Description copied from class:GmlBaseListenerEnter a parse tree produced by theStringKeyValuelabeled alternative inGmlParser.keyValuePair().The default implementation does nothing.
- Specified by:
enterStringKeyValuein interfaceGmlListener- Overrides:
enterStringKeyValuein classGmlBaseListener- Parameters:
ctx- the parse tree
-
parseNumberAttribute
-