com.intellij.psi
Interface PsiIdentifier

All Superinterfaces:
Iconable, PsiElement, PsiJavaToken, UserDataHolder

public interface PsiIdentifier
extends PsiJavaToken

Represents a Java identifier.


Field Summary
static PsiIdentifier[] EMPTY_ARRAY
          The empty array of PSI identifiers 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
 PsiElement replace(PsiElement newElement)
          Replaces this PSI element (along with all its children) with another element (along with the children).
 
Methods inherited from interface com.intellij.psi.PsiJavaToken
getTokenType
 
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, 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
 

Field Detail

EMPTY_ARRAY

static final PsiIdentifier[] EMPTY_ARRAY
The empty array of PSI identifiers which can be reused to avoid unnecessary allocations.

Method Detail

replace

PsiElement replace(PsiElement newElement)
                   throws IncorrectOperationException
Description copied from interface: PsiElement
Replaces this PSI element (along with all its children) with another element (along with the children).

Specified by:
replace in interface PsiElement
Parameters:
newElement - the element to replace this element with.
Returns:
the element which was actually inserted in the tree (either newElement or its copy)
Throws:
IncorrectOperationException - if the modification is not supported or not possible for some reason.