Package org.sonar.java.model
Class LiteralUtils
java.lang.Object
org.sonar.java.model.LiteralUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getAsStringValue
(LiteralTree tree) static boolean
static int
indentationOfTextBlock
(String[] lines) static Integer
intLiteralValue
(ExpressionTree expression) static boolean
is0xff
(ExpressionTree expression) static boolean
isEmptyString
(Tree tree) static boolean
static boolean
isNegOne
(ExpressionTree tree) static boolean
isOne
(ExpressionTree tree) static boolean
isTextBlock
(String value) static boolean
static boolean
isZero
(ExpressionTree tree) static Long
static String
trimLongSuffix
(String longString) static String
trimQuotes
(String value)
-
Method Details
-
intLiteralValue
-
longLiteralValue
-
isEmptyString
-
is0xff
-
trimQuotes
-
isTextBlock
-
trimLongSuffix
-
hasValue
-
isTrue
-
isFalse
-
isZero
-
isOne
-
isNegOne
-
getAsStringValue
-
indentationOfTextBlock
-