|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PsiNamedElement
A PSI element which has a name and can be renamed (for example, a class or a method).
| Field Summary | |
|---|---|
static PsiNamedElement[] |
EMPTY_ARRAY
The empty array of PSI named elements which can be reused to avoid unnecessary allocations. |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the element. |
PsiElement |
setName(java.lang.String name)
Renames the element. |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Field Detail |
|---|
static final PsiNamedElement[] EMPTY_ARRAY
| Method Detail |
|---|
java.lang.String getName()
PsiElement setName(java.lang.String name)
throws IncorrectOperationException
name - the new element name.
this
or a different element if the rename caused the element to be replaced).
IncorrectOperationException - if the modification is not supported or not possible for some reason.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||