Exemplo n.º 1
0
 /// <summary>Constructor used for creating non-empty Segments</summary>
 protected internal JsonPointer(string fullString, string segment, com.fasterxml.jackson.core.JsonPointer
     next)
 {
     _asString = fullString;
     _nextSegment = next;
     // Ok; may always be a property
     _matchingPropertyName = segment;
     // but could be an index, if parsable
     _matchingElementIndex = _parseIndex(segment);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor used for creating "empty" instance, used to represent
 /// state that matches current node.
 /// </summary>
 protected internal JsonPointer()
 {
     /*
     /**********************************************************
     /* Cosntruction
     /**********************************************************
     */
     _nextSegment = null;
     _matchingPropertyName = string.Empty;
     _matchingElementIndex = -1;
     _asString = string.Empty;
 }
Exemplo n.º 3
0
 /// <since>2.5</since>
 protected internal JsonPointer(string fullString, string segment, int matchIndex, 
     com.fasterxml.jackson.core.JsonPointer next)
 {
     _asString = fullString;
     _nextSegment = next;
     _matchingPropertyName = segment;
     _matchingElementIndex = matchIndex;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Accessor for getting a pointer instance that is identical to this
 /// instance except that the last segment has been dropped.
 /// </summary>
 /// <remarks>
 /// Accessor for getting a pointer instance that is identical to this
 /// instance except that the last segment has been dropped.
 /// For example, for JSON Point "/root/branch/leaf", this method would
 /// return pointer "/root/branch" (compared to
 /// <see cref="tail()"/>
 /// that
 /// would return "/branch/leaf").
 /// For leaf
 /// </remarks>
 /// <since>2.5</since>
 public virtual com.fasterxml.jackson.core.JsonPointer head()
 {
     com.fasterxml.jackson.core.JsonPointer h = _head;
     if (h == null)
     {
         if (this != EMPTY)
         {
             h = _constructHead();
         }
         _head = h;
     }
     return h;
 }
 public JsonPointerBasedFilter(com.fasterxml.jackson.core.JsonPointer match)
 {
     _pathToMatch = match;
 }