Class ExpressionUtils
java.lang.Object
org.apache.el.util.ExpressionUtils
Compares expression trees using their captured function mappings. Parsed nodes are shared between expressions, so
function mappings must be considered separately rather than stored on the nodes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequals(org.apache.el.parser.Node first, FunctionMapper firstMapper, org.apache.el.parser.Node second, FunctionMapper secondMapper) Compare parsed expressions and the functions they reference.static inthashCode(org.apache.el.parser.Node node, FunctionMapper mapper) Hash a parsed expression and the functions it references.
-
Method Details
-
equals
public static boolean equals(org.apache.el.parser.Node first, FunctionMapper firstMapper, org.apache.el.parser.Node second, FunctionMapper secondMapper) Compare parsed expressions and the functions they reference.- Parameters:
first- First expression treefirstMapper- First expression's captured function mappersecond- Second expression treesecondMapper- Second expression's captured function mapper- Returns:
trueif the expressions have identical parsed representations and function mappings
-
hashCode
Hash a parsed expression and the functions it references.- Parameters:
node- Expression treemapper- Expression's captured function mapper- Returns:
- Hash consistent with function-aware expression equality
-