コード例 #1
0
 public JsonReadContext(com.fasterxml.jackson.core.json.JsonReadContext parent, com.fasterxml.jackson.core.json.DupDetector
     dups, int type, int lineNr, int colNr)
     : base()
 {
     // // // Configuration
     // // // Optional duplicate detection
     /*
     /**********************************************************
     /* Simple instance reuse slots; speeds up things
     /* a bit (10-15%) for docs with lots of small
     /* arrays/objects (for which allocation was
     /* visible in profile stack frames)
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Location/state information (minus source reference)
     /**********************************************************
     */
     /*
     /**********************************************************
     /* Instance construction, config, reuse
     /**********************************************************
     */
     _parent = parent;
     _dups = dups;
     _type = type;
     _lineNr = lineNr;
     _columnNr = colNr;
     _index = -1;
 }
コード例 #2
0
 public com.fasterxml.jackson.core.json.JsonReadContext createChildObjectContext(int
     lineNr, int colNr)
 {
     com.fasterxml.jackson.core.json.JsonReadContext ctxt = _child;
     if (ctxt == null)
     {
         _child = ctxt = new com.fasterxml.jackson.core.json.JsonReadContext(this, (_dups
             == null) ? null : _dups.child(), TYPE_OBJECT, lineNr, colNr);
         return ctxt;
     }
     ctxt.reset(TYPE_OBJECT, lineNr, colNr);
     return ctxt;
 }
コード例 #3
0
 public com.fasterxml.jackson.core.json.JsonReadContext createChildArrayContext(int
     lineNr, int colNr)
 {
     com.fasterxml.jackson.core.json.JsonReadContext ctxt = _child;
     if (ctxt == null)
     {
         _child = ctxt = new com.fasterxml.jackson.core.json.JsonReadContext(this, (_dups
             == null) ? null : _dups.child(), TYPE_ARRAY, lineNr, colNr);
     }
     else
     {
         ctxt.reset(TYPE_ARRAY, lineNr, colNr);
     }
     return ctxt;
 }