Interface Path

  • All Known Implementing Classes:
    CompiledPath

    public interface Path
    • Method Detail

      • evaluate

        EvaluationContext evaluate​(java.lang.Object document,
                                   java.lang.Object rootDocument,
                                   Configuration configuration)
        Evaluates this path
        Parameters:
        document - the json document to apply the path on
        rootDocument - the root json document that started this evaluation
        configuration - configuration to use
        Returns:
        EvaluationContext containing results of evaluation
      • evaluate

        EvaluationContext evaluate​(java.lang.Object document,
                                   java.lang.Object rootDocument,
                                   Configuration configuration,
                                   boolean forUpdate)
        Evaluates this path
        Parameters:
        document - the json document to apply the path on
        rootDocument - the root json document that started this evaluation
        configuration - configuration to use
        forUpdate - is this a read or a write operation
        Returns:
        EvaluationContext containing results of evaluation
      • isDefinite

        boolean isDefinite()
        Returns:
        true id this path is definite
      • isFunctionPath

        boolean isFunctionPath()
        Returns:
        true id this path is a function
      • isRootPath

        boolean isRootPath()
        Returns:
        true id this path is starts with '$' and false if the path starts with '@'