cc.plural.jsonij.jpath
Class AllPredicate

java.lang.Object
  extended by cc.plural.jsonij.jpath.Component
      extended by cc.plural.jsonij.jpath.PredicateComponent
          extended by cc.plural.jsonij.jpath.AllPredicate

public class AllPredicate
extends PredicateComponent

All predicate implementation.

Author:
J.W.Marsden

Constructor Summary
AllPredicate()
           
 
Method Summary
 List<Value> evaluate(List<Value> values, List<Value> results)
          If the value is an array, then add all elements.
 
Methods inherited from class cc.plural.jsonij.jpath.Component
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllPredicate

public AllPredicate()
Method Detail

evaluate

public List<Value> evaluate(List<Value> values,
                            List<Value> results)
If the value is an array, then add all elements. If the value is an object, then add all attributes.

Specified by:
evaluate in class Component
Parameters:
values - The current values.
Returns:
The new values.


Copyright © 2012. All Rights Reserved.