Class EasyPredicateParser

java.lang.Object
org.apache.camel.jsonpath.easypredicate.EasyPredicateParser

public class EasyPredicateParser extends Object
To allow defining very easy jsonpath predicates using the syntax: left OP right

The easy parser is only in use if the predicate do not start with the $ sign which is used by jsonpath. The parser is intended for predicates only.

  • Constructor Details

    • EasyPredicateParser

      public EasyPredicateParser()
  • Method Details

    • parse

      public String parse(String predicate)
      Parses the predicate
      Parameters:
      predicate - the predicate
      Returns:
      the parsed predicate or the original predicate if easy parser did not kick-in