public abstract class PsiJavaFileBaseImpl extends PsiFileImpl implements PsiJavaFile
Queryable.Contributor, Queryable.PrintInfo, Queryable.UtilBUILDING_STUB, myContentElementType, myManager, myOriginalFileFLAGS_LOCKED, ICON_PLACEHOLDEREMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAYBATCH_REFERENCE_PROCESSING| Modifier | Constructor and Description | 
|---|---|
protected  | 
PsiJavaFileBaseImpl(IElementType elementType,
                   IElementType contentElementType,
                   FileViewProvider viewProvider)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor. 
 | 
void | 
clearCaches()
Invalidate any file-specific cache in this method. 
 | 
PsiJavaCodeReferenceElement | 
findImportReferenceTo(PsiClass aClass)
Returns the single-class import statement which references
 the specified class, or null if there is no such statement. 
 | 
PsiClass [] | 
getClasses()  | 
PsiJavaCodeReferenceElement [] | 
getImplicitlyImportedPackageReferences()
returns the list of reference elements for the
 implicitly imported packages (for example, java.lang). 
 | 
java.lang.String [] | 
getImplicitlyImportedPackages()
Returns the list of names of implicitly imported packages
 (for example, java.lang). 
 | 
PsiImportList | 
getImportList()
Returns the import list contained in the file. 
 | 
Language | 
getLanguage()
Returns the language of the PSI element. 
 | 
LanguageLevel | 
getLanguageLevel()  | 
PsiJavaModule | 
getModuleDeclaration()
Returns a Java module declaration element, or  
null if the file is not a module-info one. | 
PsiElement [] | 
getOnDemandImports(boolean includeImplicit,
                  boolean checkIncludes)
Returns the list of classes or packages which have been
 imported on demand (for example, javax.swing.*) 
 | 
java.lang.String | 
getPackageName()
Returns the name of the package to which the file belongs. 
 | 
PsiPackageStatement | 
getPackageStatement()
Returns the package statement contained in the file. 
 | 
PsiClass [] | 
getSingleClassImports(boolean checkIncludes)
Returns the list of classes which have been imported as
 single-class imports. 
 | 
boolean | 
importClass(PsiClass aClass)
Adds an import statement for importing the specified class. 
 | 
boolean | 
processDeclarations(PsiScopeProcessor processor,
                   ResolveState state,
                   PsiElement lastParent,
                   PsiElement place)
Passes the declarations contained in this PSI element and its children
 for processing to the specified scope processor. 
 | 
void | 
setOriginalFile(PsiFile originalFile)  | 
void | 
setPackageName(java.lang.String packageName)  | 
void | 
subtreeChanged()
Called by the PSI framework when the contents of the file changes. 
 | 
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, assertReadAccessAllowed, beforeAstChange, calcStubTree, calcTreeElement, canNavigate, canNavigateToSource, checkAdd, checkDelete, checkSetName, clone, cloneImpl, copy, createContentLeafElement, createFileElement, delete, deleteChildRange, derefStub, findChildByClass, findChildrenByClass, findElementAt, findReferenceAt, getChildren, getContainingDirectory, getContainingFile, getContentElementType, getContext, getElementTypeForStubBuilder, getFileElementType, getFirstChild, getGreenStub, getGreenStubTree, getLastChild, getManager, getModificationStamp, getName, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOriginalFile, getParent, getPresentation, getPrevSibling, getProject, getPsiRoots, getReference, getReferences, getResolveScope, getStartOffsetInParent, getStub, getStubbedSpine, getStubTree, getText, getTextLength, getTextOffset, getTextRange, getTreeElement, getUseScope, getViewProvider, getVirtualFile, init, isContentsLoaded, isDirectory, isEquivalentTo, isPhysical, isTemplateDataFile, isValid, isWritable, markInvalidated, navigate, onContentReload, processChildren, putInfo, putInfo, replace, setContentElementType, setName, setTreeElementPointer, textContains, textMatches, textMatches, textToCharArray, toStringbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContainingDirectory, getFileElementType, getFileType, getModificationStamp, getNode, getOriginalFile, getParent, getPsiRoots, getViewProvider, getVirtualFilegetName, isDirectory, processChildrencheckSetNamesetNamegetPresentationcanNavigate, canNavigateToSource, navigateprotected PsiJavaFileBaseImpl(IElementType elementType, IElementType contentElementType, FileViewProvider viewProvider)
public void subtreeChanged()
PsiFilePsiFile.clearCaches()
 since file contents can be reloaded completely (without any specific subtree change) without this method being called.subtreeChanged in interface PsiFilesubtreeChanged in class PsiFileImplpublic PsiClass [] getClasses()
getClasses in interface PsiClassOwnerpublic PsiPackageStatement getPackageStatement()
PsiJavaFilegetPackageStatement in interface PsiJavaFilepublic java.lang.String getPackageName()
PsiJavaFilegetPackageName in interface PsiClassOwnergetPackageName in interface PsiJavaFilepublic void setPackageName(java.lang.String packageName)
                    throws IncorrectOperationException
setPackageName in interface PsiClassOwnerIncorrectOperationExceptionpublic PsiImportList getImportList()
PsiJavaFilegetImportList in interface PsiJavaFilepublic PsiElement [] getOnDemandImports(boolean includeImplicit, boolean checkIncludes)
PsiJavaFilegetOnDemandImports in interface PsiJavaFileincludeImplicit - if true, implicitly imported packages (like java.lang) are included.checkIncludes - deprecated, no longer usedpublic PsiClass [] getSingleClassImports(boolean checkIncludes)
PsiJavaFilegetSingleClassImports in interface PsiJavaFilecheckIncludes - deprecated, no longer used.public PsiJavaCodeReferenceElement findImportReferenceTo(PsiClass aClass)
PsiJavaFilefindImportReferenceTo in interface PsiJavaFileaClass - the class to return the import statement for.public java.lang.String [] getImplicitlyImportedPackages()
PsiJavaFilegetImplicitlyImportedPackages in interface PsiJavaFilepublic PsiJavaCodeReferenceElement [] getImplicitlyImportedPackageReferences()
PsiJavaFilegetImplicitlyImportedPackageReferences in interface PsiJavaFilepublic boolean processDeclarations(PsiScopeProcessor processor, ResolveState state, PsiElement lastParent, PsiElement place)
PsiElementprocessDeclarations in interface PsiElementprocessDeclarations in class PsiFileImplprocessor - the processor receiving the declarations.lastParent - the child of this element has been processed during the previous
                   step of the tree up walk (declarations under this element do not need
                   to be processed again)place - the original element from which the tree up walk was initiated.public void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementvisitor - the visitor to pass the element to.public Language getLanguage()
PsiElementgetLanguage in interface PsiElementgetLanguage in class PsiFileImplpublic boolean importClass(PsiClass aClass)
PsiImportHolderimportClass in interface PsiImportHolderaClass - the class to import.public LanguageLevel getLanguageLevel()
getLanguageLevel in interface PsiJavaFilepublic PsiJavaModule getModuleDeclaration()
PsiJavaFilenull if the file is not a module-info one.getModuleDeclaration in interface PsiJavaFilepublic void clearCaches()
PsiFileclearCaches in interface PsiFileclearCaches in class PsiFileImplpublic void setOriginalFile(PsiFile originalFile)
setOriginalFile in class PsiFileImpl