public final class NonNlsUastUtil
extends java.lang.Object
org.jetbrains.annotations.NonNls
Constructor and Description |
---|
NonNlsUastUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isCallableReferenceExpressionWithNonNlsQualifier(UCallableReferenceExpression expression) |
static boolean |
isCallExpressionWithNonNlsReceiver(UCallExpression expression) |
static boolean |
isNonNlsAnnotated(UElement element) |
static boolean |
isNonNlsStringLiteral(ULiteralExpression expression) |
public static boolean isNonNlsAnnotated(UElement element)
true
if passed element is annotated with org.jetbrains.annotations.NonNls
; false
otherwise.public static boolean isCallableReferenceExpressionWithNonNlsQualifier(UCallableReferenceExpression expression)
true
if expression qualifier (part before ::
) should be considered non-localizable;
false
otherwise.public static boolean isCallExpressionWithNonNlsReceiver(UCallExpression expression)
true
if expression receiver should be considered non-localizable; false
otherwise.public static boolean isNonNlsStringLiteral(ULiteralExpression expression)
true
if passed string literal should be considered non-localizable; false
otherwise.