Package org.sonar.java.model
Class LiteralUtils
java.lang.Object
org.sonar.java.model.LiteralUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAsStringValue(LiteralTree tree)static booleanstatic intindentationOfTextBlock(String[] lines)static IntegerintLiteralValue(ExpressionTree expression)static booleanis0xff(ExpressionTree expression)static booleanisEmptyString(Tree tree)static booleanstatic booleanisNegOne(ExpressionTree tree)static booleanisOne(ExpressionTree tree)static booleanisTextBlock(String value)static booleanstatic booleanisZero(ExpressionTree tree)static LonglongLiteralValue(ExpressionTree tree)static StringtrimLongSuffix(String longString)static StringtrimQuotes(String value)
-
Method Details
-
intLiteralValue
-
longLiteralValue
-
isEmptyString
-
is0xff
-
trimQuotes
-
isTextBlock
-
trimLongSuffix
-
hasValue
-
isTrue
-
isFalse
-
isZero
-
isOne
-
isNegOne
-
getAsStringValue
-
indentationOfTextBlock
-