|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intellij.openapi.util.UserDataHolderBase
com.intellij.psi.impl.ElementBase
com.intellij.psi.impl.source.PsiFileImpl
com.intellij.extapi.psi.PsiFileBase
org.jetbrains.kotlin.psi.KtFile
public class KtFile
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 |
Nested classes/interfaces inherited from interface com.intellij.openapi.ui.Queryable |
---|
com.intellij.openapi.ui.Queryable.Contributor, com.intellij.openapi.ui.Queryable.PrintInfo, com.intellij.openapi.ui.Queryable.Util |
Field Summary |
---|
Fields inherited from class com.intellij.psi.impl.source.PsiFileImpl |
---|
BUILDING_STUB, myContentElementType, myManager, myOriginalFile, STUB_PSI_MISMATCH |
Fields inherited from class com.intellij.psi.impl.ElementBase |
---|
FLAGS_LOCKED, ICON_PLACEHOLDER |
Fields inherited from interface com.intellij.psi.PsiFile |
---|
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.navigation.NavigationItem |
---|
EMPTY_NAVIGATION_ITEM_ARRAY |
Fields inherited from interface com.intellij.psi.impl.PsiFileEx |
---|
BATCH_REFERENCE_PROCESSING |
Constructor Summary | |
---|---|
KtFile(com.intellij.psi.FileViewProvider viewProvider,
boolean compiled)
|
Method Summary | ||
---|---|---|
|
accept(KtVisitor<R,D> visitor,
D data)
|
|
void |
accept(com.intellij.psi.PsiElementVisitor visitor)
|
|
|
acceptChildren(KtVisitor<java.lang.Void,D> visitor,
D data)
|
|
|
findChildByTypeOrClass(KtPlaceHolderStubElementType<T> elementType,
java.lang.Class<T> elementClass)
|
|
KtImportDirective |
findImportByAlias(java.lang.String name)
|
|
java.util.List<KtAnnotationEntry> |
getAnnotationEntries()
|
|
java.util.List<KtAnnotation> |
getAnnotations()
|
|
com.intellij.psi.PsiClass[] |
getClasses()
|
|
KtFile |
getContainingKtFile()
|
|
java.util.List<KtAnnotationEntry> |
getDanglingAnnotations()
|
|
java.util.List<KtDeclaration> |
getDeclarations()
|
|
KtFileAnnotationList |
getFileAnnotationList()
|
|
com.intellij.openapi.fileTypes.FileType |
getFileType()
|
|
java.util.List<KtImportDirective> |
getImportDirectives()
|
|
KtImportList |
getImportList()
|
|
java.lang.String |
getName()
|
|
com.intellij.lang.FileASTNode |
getNode()
|
|
KtPackageDirective |
getPackageDirective()
|
|
FqName |
getPackageFqName()
|
|
FqName |
getPackageFqNameByTree()
|
|
java.lang.String |
getPackageName()
Deprecated. |
|
KtScript |
getScript()
|
|
KotlinFileStub |
getStub()
|
|
boolean |
isCompiled()
|
|
boolean |
isScript()
|
|
boolean |
isScriptByTree()
|
|
void |
setPackageName(java.lang.String packageName)
|
|
java.lang.String |
toString()
|
Methods inherited from class com.intellij.extapi.psi.PsiFileBase |
---|
getLanguage, getParserDefinition |
Methods inherited from class com.intellij.psi.impl.source.PsiFileImpl |
---|
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, calcStubTree, calcTreeElement, canNavigate, canNavigateToSource, checkAdd, checkDelete, checkSetName, clearCaches, clone, cloneImpl, copy, createContentLeafElement, createFileElement, delete, deleteChildRange, findChildByClass, findChildrenByClass, findElementAt, findReferenceAt, findTreeForStub, getChildren, getContainingDirectory, getContainingFile, getContentElementType, getContext, getElementTypeForStubBuilder, getFirstChild, getLastChild, getManager, getModificationStamp, getNavigationElement, getNextSibling, getOriginalElement, getOriginalFile, getParent, getPresentation, getPrevSibling, getProject, getPsiRoots, getReference, getReferences, getResolveScope, getStartOffsetInParent, getStubTree, getText, getTextLength, getTextOffset, getTextRange, getTreeElement, getUseScope, getViewProvider, getVirtualFile, init, isContentsLoaded, isDirectory, isEquivalentTo, isPhysical, isTemplateDataFile, isValid, isWritable, markInvalidated, navigate, onContentReload, processChildren, processDeclarations, putInfo, putInfo, replace, reportStubAstMismatch, setContentElementType, setName, setOriginalFile, setTreeElementPointer, subtreeChanged, textContains, textMatches, textMatches, textToCharArray |
Methods inherited from class com.intellij.psi.impl.ElementBase |
---|
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags |
Methods inherited from class com.intellij.openapi.util.UserDataHolderBase |
---|
changeUserMap, clearUserData, 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.PsiFile |
---|
getContainingDirectory, getModificationStamp, getOriginalFile, getParent, getPsiRoots, getViewProvider, getVirtualFile, subtreeChanged |
Methods inherited from interface com.intellij.psi.PsiFileSystemItem |
---|
isDirectory, processChildren |
Methods inherited from interface com.intellij.psi.PsiCheckedRenameElement |
---|
checkSetName |
Methods inherited from interface com.intellij.psi.PsiNamedElement |
---|
setName |
Methods inherited from interface com.intellij.psi.PsiElement |
---|
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getOriginalElement, 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.navigation.NavigationItem |
---|
getPresentation |
Methods inherited from interface com.intellij.pom.Navigatable |
---|
canNavigate, canNavigateToSource, navigate |
Constructor Detail |
---|
public KtFile(com.intellij.psi.FileViewProvider viewProvider, boolean compiled)
Method Detail |
---|
public com.intellij.lang.FileASTNode getNode()
getNode
in interface com.intellij.psi.PsiElement
getNode
in interface com.intellij.psi.PsiFile
getNode
in class com.intellij.psi.impl.source.PsiFileImpl
public boolean isCompiled()
@NotNull public com.intellij.openapi.fileTypes.FileType getFileType()
getFileType
in interface com.intellij.psi.PsiFile
public java.lang.String toString()
toString
in interface com.intellij.psi.PsiElement
toString
in class com.intellij.psi.impl.source.PsiFileImpl
@NotNull public java.util.List<KtDeclaration> getDeclarations()
getDeclarations
in interface KtDeclarationContainer
@Nullable public KtImportList getImportList()
@Nullable public KtFileAnnotationList getFileAnnotationList()
@Nullable public <T extends KtElementImplStub<? extends com.intellij.psi.stubs.StubElement<?>>> T findChildByTypeOrClass(@NotNull KtPlaceHolderStubElementType<T> elementType, @NotNull java.lang.Class<T> elementClass)
@NotNull public java.util.List<KtImportDirective> getImportDirectives()
@Nullable public KtImportDirective findImportByAlias(@NotNull java.lang.String name)
@Nullable public KtPackageDirective getPackageDirective()
@Deprecated @NotNull public java.lang.String getPackageName()
getPackageName
in interface com.intellij.psi.PsiClassOwner
@NotNull public FqName getPackageFqName()
@NotNull public FqName getPackageFqNameByTree()
@Nullable public KotlinFileStub getStub()
getStub
in class com.intellij.psi.impl.source.PsiFileImpl
@NotNull public com.intellij.psi.PsiClass[] getClasses()
getClasses
in interface com.intellij.psi.PsiClassOwner
public void setPackageName(java.lang.String packageName)
setPackageName
in interface com.intellij.psi.PsiClassOwner
@Nullable public KtScript getScript()
public boolean isScript()
public boolean isScriptByTree()
@NotNull public java.lang.String getName()
getName
in interface com.intellij.navigation.NavigationItem
getName
in interface com.intellij.psi.PsiFileSystemItem
getName
in interface com.intellij.psi.PsiNamedElement
getName
in class com.intellij.psi.impl.source.PsiFileImpl
public void accept(@NotNull com.intellij.psi.PsiElementVisitor visitor)
accept
in interface com.intellij.psi.PsiElement
accept
in class com.intellij.extapi.psi.PsiFileBase
@NotNull public KtFile getContainingKtFile()
public <D> void acceptChildren(@NotNull KtVisitor<java.lang.Void,D> visitor, D data)
public <R,D> R accept(@NotNull KtVisitor<R,D> visitor, D data)
@NotNull public java.util.List<KtAnnotation> getAnnotations()
getAnnotations
in interface KtAnnotated
@NotNull public java.util.List<KtAnnotationEntry> getAnnotationEntries()
getAnnotationEntries
in interface KtAnnotated
@NotNull public java.util.List<KtAnnotationEntry> getDanglingAnnotations()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |