org.jetbrains.kotlin.asJava.elements
Class LightVariableBuilder

java.lang.Object
  extended by com.intellij.openapi.util.UserDataHolderBase
      extended by com.intellij.psi.impl.ElementBase
          extended by com.intellij.psi.impl.PsiElementBase
              extended by com.intellij.psi.impl.light.LightElement
                  extended by org.jetbrains.kotlin.asJava.elements.LightVariableBuilder
All Implemented Interfaces:
com.intellij.navigation.NavigationItem, com.intellij.openapi.util.Iconable, com.intellij.openapi.util.UserDataHolder, com.intellij.openapi.util.UserDataHolderEx, com.intellij.pom.Navigatable, com.intellij.pom.PomNamedTarget, com.intellij.pom.PomRenameableTarget<com.intellij.psi.PsiElement>, com.intellij.pom.PomTarget, com.intellij.psi.NavigatablePsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiModifierListOwner, com.intellij.psi.PsiNamedElement, com.intellij.psi.PsiNameIdentifierOwner, com.intellij.psi.PsiTarget, com.intellij.psi.PsiVariable, java.lang.Cloneable
Direct Known Subclasses:
LightParameter

public class LightVariableBuilder
extends com.intellij.psi.impl.light.LightElement
implements com.intellij.psi.PsiVariable, com.intellij.navigation.NavigationItem


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.intellij.openapi.util.Iconable
com.intellij.openapi.util.Iconable.IconFlags, com.intellij.openapi.util.Iconable.LastComputedIcon
 
Field Summary
 
Fields inherited from class com.intellij.psi.impl.light.LightElement
myManager
 
Fields inherited from class com.intellij.psi.impl.ElementBase
FLAGS_LOCKED, ICON_PLACEHOLDER
 
Fields inherited from interface com.intellij.psi.PsiNamedElement
EMPTY_ARRAY
 
Fields inherited from interface com.intellij.psi.PsiElement
ARRAY_FACTORY
 
Fields inherited from interface com.intellij.openapi.util.Iconable
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
 
Fields inherited from interface com.intellij.pom.PomNamedTarget
EMPTY_ARRAY
 
Fields inherited from interface com.intellij.navigation.NavigationItem
EMPTY_NAVIGATION_ITEM_ARRAY
 
Constructor Summary
LightVariableBuilder(com.intellij.psi.PsiManager manager, java.lang.String name, com.intellij.psi.PsiType type, com.intellij.lang.Language language)
           
 
Method Summary
 java.lang.Object computeConstantValue()
           
 javax.swing.Icon getElementIcon(int flags)
           
 com.intellij.psi.PsiExpression getInitializer()
           
 com.intellij.psi.PsiModifierList getModifierList()
           
 java.lang.String getName()
           
 com.intellij.psi.PsiIdentifier getNameIdentifier()
           
 com.intellij.psi.PsiType getType()
           
 com.intellij.psi.PsiTypeElement getTypeElement()
           
 boolean hasInitializer()
           
 boolean hasModifierProperty(java.lang.String name)
           
protected  boolean isVisibilitySupported()
           
 void normalizeDeclaration()
           
 com.intellij.psi.PsiElement setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class com.intellij.psi.impl.light.LightElement
accept, add, addAfter, addBefore, checkAdd, checkDelete, copy, delete, findElementAt, getChildren, getContainingFile, getLanguage, getManager, getNavigationElement, getNextSibling, getNode, getParent, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isPhysical, isValid, isWritable, replace, setNavigationElement, textMatches, textMatches, textToCharArray
 
Methods inherited from class com.intellij.psi.impl.PsiElementBase
acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getFirstChild, getLastChild, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textContains
 
Methods inherited from class com.intellij.psi.impl.ElementBase
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, overlayIcons, registerIconLayer, transformFlags
 
Methods inherited from class com.intellij.openapi.util.UserDataHolderBase
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, 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
 
Methods inherited from interface com.intellij.psi.PsiTarget
getNavigationElement
 
Methods inherited from interface com.intellij.pom.PomRenameableTarget
isWritable
 
Methods inherited from interface com.intellij.pom.PomTarget
isValid
 
Methods inherited from interface com.intellij.pom.Navigatable
canNavigate, canNavigateToSource, navigate
 
Methods inherited from interface com.intellij.navigation.NavigationItem
getPresentation
 

Constructor Detail

LightVariableBuilder

public LightVariableBuilder(com.intellij.psi.PsiManager manager,
                            @NotNull
                            java.lang.String name,
                            @NotNull
                            com.intellij.psi.PsiType type,
                            com.intellij.lang.Language language)
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface com.intellij.psi.PsiElement
Specified by:
toString in class com.intellij.psi.impl.light.LightElement

getType

@NotNull
public com.intellij.psi.PsiType getType()
Specified by:
getType in interface com.intellij.psi.PsiVariable

getModifierList

@NotNull
public com.intellij.psi.PsiModifierList getModifierList()
Specified by:
getModifierList in interface com.intellij.psi.PsiModifierListOwner

hasModifierProperty

public boolean hasModifierProperty(@NonNls@NotNull
                                   java.lang.String name)
Specified by:
hasModifierProperty in interface com.intellij.psi.PsiModifierListOwner

getName

@NotNull
public java.lang.String getName()
Specified by:
getName in interface com.intellij.navigation.NavigationItem
Specified by:
getName in interface com.intellij.pom.PomNamedTarget
Specified by:
getName in interface com.intellij.psi.PsiNamedElement
Overrides:
getName in class com.intellij.psi.impl.PsiElementBase

getTypeElement

public com.intellij.psi.PsiTypeElement getTypeElement()
Specified by:
getTypeElement in interface com.intellij.psi.PsiVariable

getInitializer

public com.intellij.psi.PsiExpression getInitializer()
Specified by:
getInitializer in interface com.intellij.psi.PsiVariable

hasInitializer

public boolean hasInitializer()
Specified by:
hasInitializer in interface com.intellij.psi.PsiVariable

normalizeDeclaration

public void normalizeDeclaration()
                          throws com.intellij.util.IncorrectOperationException
Specified by:
normalizeDeclaration in interface com.intellij.psi.PsiVariable
Throws:
com.intellij.util.IncorrectOperationException

computeConstantValue

public java.lang.Object computeConstantValue()
Specified by:
computeConstantValue in interface com.intellij.psi.PsiVariable

getNameIdentifier

public com.intellij.psi.PsiIdentifier getNameIdentifier()
Specified by:
getNameIdentifier in interface com.intellij.psi.PsiNameIdentifierOwner
Specified by:
getNameIdentifier in interface com.intellij.psi.PsiVariable

setName

public com.intellij.psi.PsiElement setName(@NonNls@NotNull
                                           java.lang.String name)
                                    throws com.intellij.util.IncorrectOperationException
Specified by:
setName in interface com.intellij.pom.PomRenameableTarget<com.intellij.psi.PsiElement>
Specified by:
setName in interface com.intellij.psi.PsiNamedElement
Specified by:
setName in interface com.intellij.psi.PsiVariable
Throws:
com.intellij.util.IncorrectOperationException

isVisibilitySupported

protected boolean isVisibilitySupported()
Overrides:
isVisibilitySupported in class com.intellij.psi.impl.ElementBase

getElementIcon

public javax.swing.Icon getElementIcon(int flags)
Overrides:
getElementIcon in class com.intellij.psi.impl.ElementBase