Package org.sonar.java.checks.helpers
Class HardcodedStringExpressionChecker
java.lang.Object
org.sonar.java.checks.helpers.HardcodedStringExpressionChecker
This class is used to determine if an expression evaluates to a static string.
It recursively checks for the origin of the expression that it is currently evaluating.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisExpressionDerivedFromPlainText(ExpressionTree expression, List<JavaFileScannerContext.Location> secondaryLocations, Set<Symbol> visited)
-
Method Details
-
isExpressionDerivedFromPlainText
public static boolean isExpressionDerivedFromPlainText(ExpressionTree expression, List<JavaFileScannerContext.Location> secondaryLocations, Set<Symbol> visited)
-