Interface Expression

All Known Implementing Classes:
ExpressionImpl

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

    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(Map<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 Details

    • 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(Map<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.