public abstract class Comparator extends Object implements JmesPathExpression
Modifier and Type | Field and Description |
---|---|
protected JmesPathExpression |
lhsExpr
Represents the left expression
|
protected JmesPathExpression |
rhsExpr
Represents the right expression
|
Constructor and Description |
---|
Comparator(JmesPathExpression lhsExpr,
JmesPathExpression rhsExpr)
Constructs a new Comparator with the given lhs amd rhs
expressions.
|
Modifier and Type | Method and Description |
---|---|
JmesPathExpression |
getLhsExpr() |
JmesPathExpression |
getRhsExpr() |
abstract boolean |
matches(com.fasterxml.jackson.databind.JsonNode lhs,
com.fasterxml.jackson.databind.JsonNode rhs)
Abstract method definition that is overriden by subclasses
to compare the lhs and rhs expressions depending on the
particular type of comparator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
protected final JmesPathExpression lhsExpr
protected final JmesPathExpression rhsExpr
public Comparator(JmesPathExpression lhsExpr, JmesPathExpression rhsExpr)
lhsExpr
- Left expressionrhsExpr
- Right expressionpublic JmesPathExpression getLhsExpr()
public JmesPathExpression getRhsExpr()
public abstract boolean matches(com.fasterxml.jackson.databind.JsonNode lhs, com.fasterxml.jackson.databind.JsonNode rhs)
lhs
- Lhs expressionrhs
- Rhs expressionCopyright © 2020. All rights reserved.