cc.plural.jsonij.jpath
Class UnionPredicate

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

public class UnionPredicate
extends PredicateComponent

JPath Union Predicate Implementation. This predicate allows a comma separated zero based list of indexes for JPath evaluation. For example, [0,2] will result in the first and third indexes of an array being evaluated in the JPath. Indexes must be 0 <= x <= R.

Author:
J.W.Marsden

Field Summary
 int CAPACITY_GROWTH_FACTOR
           
 
Constructor Summary
UnionPredicate()
           
UnionPredicate(int[] indexes)
           
 
Method Summary
 void addIndex(int index)
           
 boolean containsIndex(int index)
           
 boolean equals(Object obj)
           
 List<Value> evaluate(List<Value> values, List<Value> results)
           
 int[] getIndexes()
           
 int hashCode()
           
 void setIndexes(int[] indexes)
           
 
Methods inherited from class cc.plural.jsonij.jpath.Component
evaluate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAPACITY_GROWTH_FACTOR

public final int CAPACITY_GROWTH_FACTOR
See Also:
Constant Field Values
Constructor Detail

UnionPredicate

public UnionPredicate()

UnionPredicate

public UnionPredicate(int[] indexes)
Method Detail

getIndexes

public int[] getIndexes()

setIndexes

public void setIndexes(int[] indexes)

containsIndex

public boolean containsIndex(int index)

addIndex

public void addIndex(int index)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

evaluate

public List<Value> evaluate(List<Value> values,
                            List<Value> results)
Specified by:
evaluate in class Component


Copyright © 2012. All Rights Reserved.