org.jetbrains.jet.lang.psi
Class JetFile

java.lang.Object
  extended by com.intellij.openapi.util.UserDataHolderBase
      extended by com.intellij.psi.impl.ElementBase
          extended by com.intellij.psi.impl.source.PsiFileImpl
              extended by com.intellij.extapi.psi.PsiFileBase
                  extended by org.jetbrains.jet.lang.psi.JetFile
All Implemented Interfaces:
com.intellij.navigation.NavigationItem, com.intellij.openapi.ui.Queryable, com.intellij.openapi.util.Iconable, com.intellij.openapi.util.UserDataHolder, com.intellij.openapi.util.UserDataHolderEx, com.intellij.pom.Navigatable, com.intellij.psi.impl.PsiFileEx, com.intellij.psi.impl.source.PsiFileWithStubSupport, com.intellij.psi.NavigatablePsiElement, com.intellij.psi.PsiCheckedRenameElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiFile, com.intellij.psi.PsiFileSystemItem, com.intellij.psi.PsiNamedElement, java.lang.Cloneable, JetDeclarationContainer, JetElement
Direct Known Subclasses:
JetCodeFragmentImpl

public class JetFile
extends com.intellij.extapi.psi.PsiFileBase
implements JetDeclarationContainer, JetElement


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
 
Fields inherited from class com.intellij.psi.impl.ElementBase
FLAGS_LOCKED, ICON_PLACEHOLDER
 
Fields inherited from class com.intellij.openapi.util.UserDataHolderBase
COPYABLE_USER_MAP_KEY
 
Fields inherited from interface com.intellij.psi.PsiElement
ARRAY_FACTORY, EMPTY_ARRAY
 
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
 
Fields inherited from interface com.intellij.psi.PsiFile
EMPTY_ARRAY
 
Constructor Summary
JetFile(com.intellij.psi.FileViewProvider viewProvider)
           
 
Method Summary
<R,D> R
accept(JetVisitor<R,D> visitor, D data)
           
 void accept(JetVisitorVoid visitor)
           
 void accept(com.intellij.psi.PsiElementVisitor visitor)
           
<D> void
acceptChildren(JetTreeVisitor<D> visitor, D data)
           
 JetImportDirective findImportByAlias(java.lang.String name)
           
 java.util.List<JetDeclaration> getDeclarations()
           
 com.intellij.openapi.fileTypes.FileType getFileType()
           
 java.util.List<JetImportDirective> getImportDirectives()
           
 java.lang.String getName()
           
 JetNamespaceHeader getNamespaceHeader()
           
 java.lang.String getPackageName()
           
 JetScript getScript()
           
 boolean isScript()
           
 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, cacheCopy, 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, getFirstChild, getLastChild, getManager, getModificationStamp, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOriginalFile, getParent, getPresentation, getPrevSibling, getProject, getPsiRoots, getReference, getReferences, getResolveScope, getStartOffsetInParent, getStub, getStubTree, getText, getTextLength, getTextOffset, getTextRange, getTreeElement, getUseScope, getViewProvider, getVirtualFile, init, isContentsLoaded, isDirectory, isEquivalentTo, isPhysical, isPsiUpToDate, isTemplateDataFile, isValid, isWritable, navigate, onContentReload, processChildren, processDeclarations, putInfo, putInfo, replace, reportStubAstMismatch, setContentElementType, setName, setOriginalFile, setTreeElementPointer, subtreeChanged, textContains, textMatches, textMatches, textToCharArray, unloadContent
 
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
clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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, 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.navigation.NavigationItem
getPresentation
 
Methods inherited from interface com.intellij.pom.Navigatable
canNavigate, canNavigateToSource, navigate
 

Constructor Detail

JetFile

public JetFile(com.intellij.psi.FileViewProvider viewProvider)
Method Detail

getFileType

@NotNull
public com.intellij.openapi.fileTypes.FileType getFileType()
Specified by:
getFileType in interface com.intellij.psi.PsiFile

toString

public java.lang.String toString()
Specified by:
toString in interface com.intellij.psi.PsiElement
Overrides:
toString in class com.intellij.psi.impl.source.PsiFileImpl

getDeclarations

@NotNull
public java.util.List<JetDeclaration> getDeclarations()
Specified by:
getDeclarations in interface JetDeclarationContainer

getImportDirectives

public java.util.List<JetImportDirective> getImportDirectives()

findImportByAlias

@Nullable
public JetImportDirective findImportByAlias(@NotNull
                                                     java.lang.String name)

getNamespaceHeader

@Nullable
public JetNamespaceHeader getNamespaceHeader()

getPackageName

@Nullable
public java.lang.String getPackageName()

getScript

@Nullable
public JetScript getScript()

isScript

public boolean isScript()

getName

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

accept

public void accept(@NotNull
                   com.intellij.psi.PsiElementVisitor visitor)
Specified by:
accept in interface com.intellij.psi.PsiElement
Overrides:
accept in class com.intellij.extapi.psi.PsiFileBase

acceptChildren

public <D> void acceptChildren(@NotNull
                               JetTreeVisitor<D> visitor,
                               D data)
Specified by:
acceptChildren in interface JetElement

accept

public void accept(@NotNull
                   JetVisitorVoid visitor)
Specified by:
accept in interface JetElement

accept

public <R,D> R accept(@NotNull
                      JetVisitor<R,D> visitor,
                      D data)
Specified by:
accept in interface JetElement