public class LiteralUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasValue(Tree tree,
String expectedValue) |
static Integer |
intLiteralValue(ExpressionTree expression) |
static boolean |
is0xff(ExpressionTree expression) |
static boolean |
isEmptyString(Tree tree) |
static boolean |
isFalse(Tree tree) |
static boolean |
isTrue(Tree tree) |
static Long |
longLiteralValue(ExpressionTree tree) |
static String |
trimLongSuffix(String longString) |
static String |
trimQuotes(String value) |
@CheckForNull public static Integer intLiteralValue(ExpressionTree expression)
@CheckForNull public static Long longLiteralValue(ExpressionTree tree)
public static boolean isEmptyString(Tree tree)
public static boolean is0xff(ExpressionTree expression)
public static boolean isTrue(Tree tree)
public static boolean isFalse(Tree tree)
Copyright © 2012–2018 SonarSource. All rights reserved.