public interface PsiModifierList extends PsiElement, PsiAnnotationOwner
PsiModifier class.PsiModifierListOwner.getModifierList()Iconable.IconFlags, Iconable.LastComputedIconARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Modifier and Type | Method and Description |
|---|---|
void |
checkSetModifierProperty(java.lang.String name,
boolean value)
Checks if it is possible to add or remove the specified modifier to the modifier list,
and throws an exception if the operation is not possible.
|
boolean |
hasExplicitModifier(java.lang.String name)
Checks if the modifier list has the specified modifier set by an explicit keyword.
|
boolean |
hasModifierProperty(java.lang.String name)
Checks if the modifier list has the specified modifier set either by an explicit keyword
or implicitly (for example, interface methods are implicitly public).
|
void |
setModifierProperty(java.lang.String name,
boolean value)
Adds or removes the specified modifier to the modifier list.
|
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, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDataaddAnnotation, findAnnotation, getAnnotations, getApplicableAnnotations, hasAnnotationboolean hasModifierProperty(java.lang.String name)
name - the name of the modifier to check.hasExplicitModifier(String)boolean hasExplicitModifier(java.lang.String name)
name - the name of the modifier to check.hasModifierProperty(String)void setModifierProperty(java.lang.String name,
boolean value)
throws IncorrectOperationException
name - the name of the modifier to add or remove.value - true if the modifier should be added, false if it should be removed.IncorrectOperationException - if the modification fails for some reason.void checkSetModifierProperty(java.lang.String name,
boolean value)
throws IncorrectOperationException
name - the name of the modifier to check the add or remove possibility for.value - true if the modifier should be added, false if it should be removed.IncorrectOperationException - if the modification fails for some reason.