Interface Expression

  • All Known Implementing Classes:
    ExpressionImpl

    public interface Expression
    Represents a compiled JSLT expression.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JsonNode apply​(com.fasterxml.jackson.databind.JsonNode input)
      Evaluate the expression on the given JSON input.
      com.fasterxml.jackson.databind.JsonNode apply​(java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode> variables, com.fasterxml.jackson.databind.JsonNode input)
      Evaluate the expression on the given JSON input, with the given predefined variables set.
    • Method Detail

      • apply

        com.fasterxml.jackson.databind.JsonNode apply​(com.fasterxml.jackson.databind.JsonNode input)
        Evaluate the expression on the given JSON input.
        Parameters:
        input - The JSON input to evaluate the expression on.
      • apply

        com.fasterxml.jackson.databind.JsonNode apply​(java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode> variables,
                                                      com.fasterxml.jackson.databind.JsonNode input)
        Evaluate the expression on the given JSON input, with the given predefined variables set.
        Parameters:
        variables - Variable bindings visible inside the expression.
        input - The JSON input to evaluate the expression on.