com.intellij.psi
Interface PsiImportStaticReferenceElement

All Superinterfaces:
Iconable, PsiElement, PsiJavaCodeReferenceElement, PsiJavaReference, PsiPolyVariantReference, PsiReference, UserDataHolder

public interface PsiImportStaticReferenceElement
extends PsiJavaCodeReferenceElement

Represents a reference to the member imported by a Java import static statement.


Field Summary
 
Fields inherited from interface com.intellij.psi.PsiJavaCodeReferenceElement
EMPTY_ARRAY
 
Fields inherited from interface com.intellij.openapi.util.Iconable
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
 
Method Summary
 PsiImportStaticStatement bindToTargetClass(PsiClass aClass)
          Binds the reference element to the specified class.
 PsiJavaCodeReferenceElement getClassReference()
          Returns the reference element specifying the class from which the member is imported.
 
Methods inherited from interface com.intellij.psi.PsiJavaCodeReferenceElement
getParameterList, getQualifiedName, getQualifier, getReferenceName, getReferenceNameElement, getTypeParameters, isQualified
 
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, 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.PsiJavaReference
advancedResolve, multiResolve, processVariants
 
Methods inherited from interface com.intellij.psi.PsiReference
bindToElement, getCanonicalText, getElement, getRangeInElement, getVariants, handleElementRename, isReferenceTo, isSoft, resolve
 

Method Detail

getClassReference

PsiJavaCodeReferenceElement getClassReference()
Returns the reference element specifying the class from which the member is imported.

Returns:
the reference element specifying the class.

bindToTargetClass

PsiImportStaticStatement bindToTargetClass(PsiClass aClass)
                                           throws IncorrectOperationException
Binds the reference element to the specified class.

Parameters:
aClass - the class to bind the reference element to.
Returns:
the element corresponding to this element in the PSI tree after the rebind.
Throws:
IncorrectOperationException - if the modification fails for some reason (for example, the containing file is read-only).
See Also:
PsiReference.bindToElement(PsiElement)