com.intellij.codeInsight
Class AnnotationUtil
java.lang.Object
com.intellij.codeInsight.AnnotationUtil
public class AnnotationUtil
- extends java.lang.Object
|
Field Summary |
static java.lang.String |
NON_NLS
The full qualified name of the standard NonNls annotation. |
static java.lang.String |
NOT_NULL
The full qualified name of the standard NotNull annotation. |
static java.lang.String |
NULLABLE
The full qualified name of the standard Nullable annotation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULLABLE
public static final java.lang.String NULLABLE
- The full qualified name of the standard Nullable annotation.
- See Also:
- Constant Field Values
NOT_NULL
public static final java.lang.String NOT_NULL
- The full qualified name of the standard NotNull annotation.
- See Also:
- Constant Field Values
NON_NLS
public static final java.lang.String NON_NLS
- The full qualified name of the standard NonNls annotation.
- Since:
- 5.0.1
- See Also:
- Constant Field Values
AnnotationUtil
public AnnotationUtil()
isNullable
public static boolean isNullable(PsiModifierListOwner owner)
isNotNull
public static boolean isNotNull(PsiModifierListOwner owner)
findAnnotation
@Nullable
public static PsiAnnotation findAnnotation(PsiModifierListOwner listOwner,
java.util.Set<java.lang.String> annotationNames)
findAnnotationInHierarchy
@Nullable
public static PsiAnnotation findAnnotationInHierarchy(PsiModifierListOwner listOwner,
java.util.Set<java.lang.String> annotationNames)
isAnnotated
public static boolean isAnnotated(PsiModifierListOwner listOwner,
java.lang.String annotationFQN,
boolean checkHierarchy)
isAnnotatingApplicable
public static boolean isAnnotatingApplicable(PsiElement elt)