Class ExprTextUtils
java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.util.ExprTextUtils
Helpers for adding/removing parentheses around expression text.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringParenthesize an expression only if the current string is not already wrapped by a single outer pair.static StringSimple parentheses wrapper used in a few contexts (e.g., HAVING NOT): if the string is non-empty and does not start with '(', wrap it.static String
-
Method Details
-
stripRedundantOuterParens
-
parenthesizeIfNeededSimple
-
parenthesizeIfNeededExpr
-