com.intellij.psi
Interface PsiModifierListOwner

All Superinterfaces:
Iconable, PsiElement, UserDataHolder
All Known Subinterfaces:
ImplicitVariable, JspImplicitVariable, PsiAdvice, PsiAfterAdvice, PsiAnnotationMethod, PsiAnonymousClass, PsiAroundAdvice, PsiAspect, PsiAspectField, PsiAspectMethod, PsiBeforeAdvice, PsiClass, PsiClassInitializer, PsiDocCommentOwner, PsiEnumConstant, PsiEnumConstantInitializer, PsiField, PsiIntertypeField, PsiIntertypeMethod, PsiJoinPointStaticPart, PsiLocalVariable, PsiMember, PsiMethod, PsiParameter, PsiPointcutDef, PsiThisJoinPoint, PsiTypeParameter, PsiTypeParameterListOwner, PsiVariable

public interface PsiModifierListOwner
extends PsiElement

Represents a PSI element which has a list of modifiers (public/private/protected/etc.) and annotations.


Field Summary
 
Fields inherited from interface com.intellij.psi.PsiElement
EMPTY_ARRAY
 
Fields inherited from interface com.intellij.openapi.util.Iconable
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
 
Method Summary
 PsiModifierList getModifierList()
          Returns the list of modifiers for the element.
 boolean hasModifierProperty(java.lang.String name)
          Checks if the element has the specified modifier.
 
Methods inherited from interface com.intellij.psi.PsiElement
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getUseScope, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
 
Methods inherited from interface com.intellij.openapi.util.UserDataHolder
getUserData, putUserData
 
Methods inherited from interface com.intellij.openapi.util.Iconable
getIcon
 

Method Detail

getModifierList

PsiModifierList getModifierList()
Returns the list of modifiers for the element.

Returns:
the list of modifiers, or null if the element (for example, an anonymous inner class) does not have the list of modifiers.

hasModifierProperty

boolean hasModifierProperty(java.lang.String name)
Checks if the element has the specified modifier. Possible modifiers are defined as constants in the PsiModifier class.

Parameters:
name - the name of the modifier to check.
Returns:
true if the element has the modifier, false otherwise