Class TextUtils

java.lang.Object
org.sonar.iac.common.checks.TextUtils

public class TextUtils extends Object
  • Method Details

    • getValue

      public static Optional<String> getValue(@Nullable Tree tree)
    • getIntValue

      public static Optional<Integer> getIntValue(@Nullable Tree tree)
    • isValue

      public static Trilean isValue(@Nullable Tree tree, String expectedValue)
    • matchesValue

      public static Trilean matchesValue(@Nullable Tree tree, Predicate<String> matcher)
    • isValueTrue

      public static boolean isValueTrue(@Nullable Tree tree)
    • isValueFalse

      public static boolean isValueFalse(@Nullable Tree tree)