- 所有超级接口:
PsiElement
- 所有已知子接口:
PsiNameIdentifierOwner
Represents a declaration which introduces a named entity and can be renamed (for example, a class or a method).
References should not implement this interface since they don't usually introduce a new entity.
- 另请参阅:
-
fleet.com.intellij.model.psi.PsiSymbolDeclaration
-
字段概要
字段修饰符和类型字段说明static final PsiNamedElement[]The empty array of PSI named elements which can be reused to avoid unnecessary allocations. -
方法概要
从接口继承的方法 com.intellij.psi.PsiElement
add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getFirstChild, getLanguage, getLastChild, getNavigationElement, getNextSibling, getNode, getOriginalElement, getParent, getPrevSibling, getReference, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isEquivalentTo, isPhysical, isValid, isWritable, replace, textContains, textMatches, textMatches, textToCharArray, toString
-
字段详细资料
-
EMPTY_ARRAY
The empty array of PSI named elements which can be reused to avoid unnecessary allocations.
-
-
方法详细资料
-
getName
Returns the name of the element.- 返回:
- the element name.
-
setName
PsiElement setName(@NlsSafe @NotNull @NlsSafe @NotNull String name) throws IncorrectOperationException Renames the element.- 参数:
name- the new element name.- 返回:
- the element corresponding to this element after the renaming (either
thisor a different element if the renaming caused the element to be replaced). - 抛出:
IncorrectOperationException- if the modification is not supported or not possible for some reason.
-