cc.plural.jsonij.jpath
Class LastIndexPredicate

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

public class LastIndexPredicate
extends PredicateComponent

LastIndexPredicate Predicate Implementation. Results in querying the last element of an array during evaluation.

Author:
J.W.Marsden.

Field Summary
static LastIndexPredicate LAST
           
 
Constructor Summary
LastIndexPredicate()
           
LastIndexPredicate(int offset)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Value> evaluate(List<Value> values, List<Value> results)
           
 int getOffset()
           
 int hashCode()
           
 boolean hasOffset()
           
 void setOffset(int offset)
           
 
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

LAST

public static final LastIndexPredicate LAST
Constructor Detail

LastIndexPredicate

public LastIndexPredicate()

LastIndexPredicate

public LastIndexPredicate(int offset)
Method Detail

hasOffset

public boolean hasOffset()

getOffset

public int getOffset()

setOffset

public void setOffset(int offset)

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.