public interface PsiLocalVariable extends PsiVariable
Iconable.IconFlags, Iconable.LastComputedIcon
EMPTY_ARRAY
ARRAY_FACTORY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the element.
|
PsiTypeElement |
getTypeElement()
Returns the type element declaring the type of the variable.
|
void |
setInitializer(PsiExpression initializer)
Adds initializer to the variable declaration statement or, if
initializer
parameter is null, removes initializer from variable. |
computeConstantValue, getInitializer, getNameIdentifier, getType, hasInitializer, normalizeDeclaration, setName
getAnnotation, getAnnotations, getModifierList, hasAnnotation, hasModifier, hasModifierProperty
getIdentifyingElement
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, toString
getUserData, putUserData
getNavigationElement
isWritable
canNavigate, canNavigateToSource, navigate
void setInitializer(PsiExpression initializer) throws IncorrectOperationException
initializer
parameter is null, removes initializer from variable.setInitializer
in interface PsiVariable
initializer
- the initializer to add.IncorrectOperationException
- if the modifications fails for some reason.PsiTypeElement getTypeElement()
getTypeElement
in interface PsiVariable
java.lang.String getName()
PsiNamedElement
getName
in interface PomNamedTarget
getName
in interface PsiNamedElement