com.intellij.codeInsight
Class AnnotationUtil

java.lang.Object
  extended by 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.
 
Constructor Summary
AnnotationUtil()
           
 
Method Summary
static PsiAnnotation findAnnotation(PsiModifierListOwner listOwner, java.util.Set<java.lang.String> annotationNames)
           
static PsiAnnotation findAnnotationInHierarchy(PsiModifierListOwner listOwner, java.util.Set<java.lang.String> annotationNames)
           
static boolean isAnnotated(PsiModifierListOwner listOwner, java.lang.String annotationFQN, boolean checkHierarchy)
           
static boolean isAnnotatingApplicable(PsiElement elt)
           
static boolean isNotNull(PsiModifierListOwner owner)
           
static boolean isNullable(PsiModifierListOwner owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AnnotationUtil

public AnnotationUtil()
Method Detail

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)