public interface PsiLocalVariable extends PsiVariable
Iconable.IconFlags, Iconable.LastComputedIconEMPTY_ARRAYARRAY_FACTORYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_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, setNamegetAnnotation, getAnnotations, getModifierList, hasAnnotation, hasModifier, hasModifierPropertygetIdentifyingElementaccept, 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, putUserDatagetNavigationElementisWritablecanNavigate, canNavigateToSource, navigatevoid setInitializer(PsiExpression initializer) throws IncorrectOperationException
initializer
parameter is null, removes initializer from variable.setInitializer in interface PsiVariableinitializer - the initializer to add.IncorrectOperationException - if the modifications fails for some reason.PsiTypeElement getTypeElement()
getTypeElement in interface PsiVariablejava.lang.String getName()
PsiNamedElementgetName in interface PomNamedTargetgetName in interface PsiNamedElement