java.lang.Object
org.jgrapht.nio.json.JsonBaseListener
org.jgrapht.nio.json.JSONEventDrivenImporter.NotifyJsonListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,JsonListener
- Enclosing class:
JSONEventDrivenImporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final String
private static final String
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private String
private int
private int
private String
private static final String
private String
private static final String
private String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced byJsonParser.array()
.void
Enter a parse tree produced byJsonParser.json()
.void
Enter a parse tree produced byJsonParser.obj()
.void
Enter a parse tree produced byJsonParser.pair()
.void
Enter a parse tree produced byJsonParser.value()
.void
Exit a parse tree produced byJsonParser.array()
.void
Exit a parse tree produced byJsonParser.obj()
.void
Exit a parse tree produced byJsonParser.pair()
.private Attribute
private String
private String
private String
Methods inherited from class org.jgrapht.nio.json.JsonBaseListener
enterEveryRule, exitEveryRule, exitJson, exitValue, visitErrorNode, visitTerminal
-
Field Details
-
GRAPH
- See Also:
-
ID
- See Also:
-
WEIGHT
- See Also:
-
SOURCE
- See Also:
-
TARGET
- See Also:
-
objectLevel
private int objectLevel -
arrayLevel
private int arrayLevel -
insideNodes
private boolean insideNodes -
insideNodesArray
private boolean insideNodesArray -
insideNode
private boolean insideNode -
insideEdges
private boolean insideEdges -
insideEdgesArray
private boolean insideEdgesArray -
insideEdge
private boolean insideEdge -
pairNames
-
nodeId
-
sourceId
-
targetId
-
attributes
-
singletons
private int singletons -
singletonsUUID
-
-
Constructor Details
-
NotifyJsonListener
private NotifyJsonListener()
-
-
Method Details
-
enterJson
Description copied from class:JsonBaseListener
Enter a parse tree produced byJsonParser.json()
.The default implementation does nothing.
- Specified by:
enterJson
in interfaceJsonListener
- Overrides:
enterJson
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
enterObj
Description copied from class:JsonBaseListener
Enter a parse tree produced byJsonParser.obj()
.The default implementation does nothing.
- Specified by:
enterObj
in interfaceJsonListener
- Overrides:
enterObj
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
exitObj
Description copied from class:JsonBaseListener
Exit a parse tree produced byJsonParser.obj()
.The default implementation does nothing.
- Specified by:
exitObj
in interfaceJsonListener
- Overrides:
exitObj
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
enterArray
Description copied from class:JsonBaseListener
Enter a parse tree produced byJsonParser.array()
.The default implementation does nothing.
- Specified by:
enterArray
in interfaceJsonListener
- Overrides:
enterArray
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
exitArray
Description copied from class:JsonBaseListener
Exit a parse tree produced byJsonParser.array()
.The default implementation does nothing.
- Specified by:
exitArray
in interfaceJsonListener
- Overrides:
exitArray
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
enterPair
Description copied from class:JsonBaseListener
Enter a parse tree produced byJsonParser.pair()
.The default implementation does nothing.
- Specified by:
enterPair
in interfaceJsonListener
- Overrides:
enterPair
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
exitPair
Description copied from class:JsonBaseListener
Exit a parse tree produced byJsonParser.pair()
.The default implementation does nothing.
- Specified by:
exitPair
in interfaceJsonListener
- Overrides:
exitPair
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
enterValue
Description copied from class:JsonBaseListener
Enter a parse tree produced byJsonParser.value()
.The default implementation does nothing.
- Specified by:
enterValue
in interfaceJsonListener
- Overrides:
enterValue
in classJsonBaseListener
- Parameters:
ctx
- the parse tree
-
readAttribute
-
unquote
-
readString
-
readIdentifier
-