Class PredicateContextImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      PredicateContextImpl​(java.lang.Object contextDocument, java.lang.Object rootDocument, Configuration configuration, java.util.HashMap<Path,​java.lang.Object> documentPathCache)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Configuration configuration()
      Configuration to use when evaluating
      java.util.HashMap<Path,​java.lang.Object> documentPathCache()  
      java.lang.Object evaluate​(Path path)  
      java.lang.Object item()
      Returns the current item being evaluated by this predicate
      <T> T item​(java.lang.Class<T> clazz)
      Returns the current item being evaluated by this predicate.
      java.lang.Object root()
      Returns the root document (the complete JSON)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • contextDocument

        private final java.lang.Object contextDocument
      • rootDocument

        private final java.lang.Object rootDocument
      • documentPathCache

        private final java.util.HashMap<Path,​java.lang.Object> documentPathCache
    • Constructor Detail

      • PredicateContextImpl

        public PredicateContextImpl​(java.lang.Object contextDocument,
                                    java.lang.Object rootDocument,
                                    Configuration configuration,
                                    java.util.HashMap<Path,​java.lang.Object> documentPathCache)