cc.plural.jsonij
Class JPath<C extends Component>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<C>
              extended by cc.plural.jsonij.jpath.JPathImp<C>
                  extended by cc.plural.jsonij.JPath<C>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<C>, Collection<C>, List<C>, RandomAccess

public class JPath<C extends Component>
extends JPathImp<C>

JPath implementation. Inspired by XPath and JsonPath.

Author:
J.W.Marsden
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
JPath()
           
 
Method Summary
static Value evaluate(JSON jsonDocument, String jPath)
           
static Value evaluate(Reader documentReader, String jPath)
           
static Value evaluate(String document, String jPath)
           
static Value evaluate(Value value, String jPath)
           
static JPath<Component> parse(String path)
           
 
Methods inherited from class cc.plural.jsonij.jpath.JPathImp
evaluate, evaluate, evaluateAll, evaluateAll, getLastEvaluateTime, isRecordEvaluateTime, setRecordEvaluateTime
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

JPath

public JPath()
Method Detail

parse

public static JPath<Component> parse(String path)
                              throws IOException,
                                     ParserException
Throws:
IOException
ParserException

evaluate

public static Value evaluate(String document,
                             String jPath)
                      throws ParserException,
                             IOException
Throws:
ParserException
IOException

evaluate

public static Value evaluate(Reader documentReader,
                             String jPath)
                      throws ParserException,
                             IOException
Throws:
ParserException
IOException

evaluate

public static Value evaluate(JSON jsonDocument,
                             String jPath)
                      throws ParserException,
                             IOException
Throws:
ParserException
IOException

evaluate

public static Value evaluate(Value value,
                             String jPath)
                      throws ParserException,
                             IOException
Throws:
ParserException
IOException


Copyright © 2012. All Rights Reserved.