We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0836a6 + 854f2a0 commit 92ffd8cCopy full SHA for 92ffd8c
java/ql/lib/semmle/code/java/Expr.qll
@@ -726,6 +726,9 @@ class StringLiteral extends Literal, @stringliteral {
726
*/
727
string getRepresentedString() { result = getValue() }
728
729
+ /** Holds if this string literal is a text block (`""" ... """`). */
730
+ predicate isTextBlock() { getLiteral().matches("\"\"\"%") }
731
+
732
override string getAPrimaryQlClass() { result = "StringLiteral" }
733
}
734
0 commit comments