cc.plural.jsonij.jpath
Class JPathImp<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>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<C>, Collection<C>, List<C>, RandomAccess
Direct Known Subclasses:
JPath

public class JPathImp<C extends Component>
extends ArrayList<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
JPathImp()
           
 
Method Summary
 Value evaluate(JSON json)
           
 Value evaluate(Value value)
           
 Value[] evaluateAll(JSON json)
           
 Value[] evaluateAll(Value value)
           
 long getLastEvaluateTime()
           
 boolean isRecordEvaluateTime()
           
 void setRecordEvaluateTime(boolean recordEvaluateTime)
           
 
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

JPathImp

public JPathImp()
Method Detail

evaluate

public Value evaluate(JSON json)
               throws JPathRuntimeException
Throws:
JPathRuntimeException

evaluateAll

public Value[] evaluateAll(JSON json)
                    throws JPathRuntimeException
Throws:
JPathRuntimeException

evaluate

public Value evaluate(Value value)
               throws JPathRuntimeException
Throws:
JPathRuntimeException

evaluateAll

public Value[] evaluateAll(Value value)
                    throws JPathRuntimeException
Throws:
JPathRuntimeException

isRecordEvaluateTime

public boolean isRecordEvaluateTime()

setRecordEvaluateTime

public void setRecordEvaluateTime(boolean recordEvaluateTime)

getLastEvaluateTime

public long getLastEvaluateTime()


Copyright © 2012. All Rights Reserved.