public class ExprNodeUtilityCompare extends Object
Constructor and Description |
---|
ExprNodeUtilityCompare() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deepEquals(ExprNode[] one,
ExprNode[] two,
boolean ignoreStreamPrefix)
Compares two expression nodes via deep comparison, considering all
child nodes of either side.
|
static boolean |
deepEquals(ExprNode nodeOne,
ExprNode nodeTwo,
boolean ignoreStreamPrefix)
Compare two expression nodes and their children in exact child-node sequence,
returning true if the 2 expression nodes trees are equals, or false if they are not equals.
|
static boolean |
deepEquals(List<ExprNode> one,
List<ExprNode> two) |
static boolean |
deepEqualsIgnoreDupAndOrder(ExprNode[] setOne,
ExprNode[] setTwo) |
static boolean |
deepEqualsIsSubset(ExprNode[] subset,
ExprNode[] superset) |
static boolean |
deepEqualsNullChecked(ExprNode nodeOne,
ExprNode nodeTwo,
boolean ignoreStreamPrefix) |
public static boolean deepEqualsIgnoreDupAndOrder(ExprNode[] setOne, ExprNode[] setTwo)
public static boolean deepEquals(ExprNode nodeOne, ExprNode nodeTwo, boolean ignoreStreamPrefix)
Recursive call since it uses this method to compare child nodes in the same exact sequence. Nodes are compared using the equalsNode method.
nodeOne
- - first expression top node of the tree to comparenodeTwo
- - second expression top node of the tree to compareignoreStreamPrefix
- when the equals-comparison can ignore prefix of event propertiespublic static boolean deepEqualsNullChecked(ExprNode nodeOne, ExprNode nodeTwo, boolean ignoreStreamPrefix)
public static boolean deepEquals(ExprNode[] one, ExprNode[] two, boolean ignoreStreamPrefix)
one
- array of expressionstwo
- array of expressionsignoreStreamPrefix
- indicator whether we ignore stream prefixes and instead use resolved property nameCopyright © 2005–2018. All rights reserved.