org.jetbrains.kotlin.psi
Class KtScript

java.lang.Object
  extended by KtExpressionImpl
      extended by org.jetbrains.kotlin.psi.KtScript
All Implemented Interfaces:
com.intellij.openapi.util.Iconable, com.intellij.openapi.util.UserDataHolder, com.intellij.psi.PsiElement, KtAnnotated, KtDeclaration, KtDeclarationContainer, KtExpression, KtModifierListOwner

public class KtScript
extends KtExpressionImpl
implements KtDeclarationContainer


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 interface org.jetbrains.kotlin.psi.KtDeclaration
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
 
Constructor Summary
KtScript(com.intellij.lang.ASTNode node)
           
 
Method Summary
<R,D> R
accept(KtVisitor<R,D> visitor, D data)
           
 KtAnnotationEntry addAnnotationEntry(KtAnnotationEntry annotationEntry)
           
 void addModifier(KtModifierKeywordToken modifier)
           
 java.util.List<KtAnnotationEntry> getAnnotationEntries()
           
 java.util.List<KtAnnotation> getAnnotations()
           
 KtBlockExpression getBlockExpression()
           
 java.util.List<KtDeclaration> getDeclarations()
           
 KDoc getDocComment()
           
 KtModifierList getModifierList()
           
 boolean hasModifier(KtModifierKeywordToken modifier)
           
 void removeModifier(KtModifierKeywordToken modifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, toString
 
Methods inherited from interface com.intellij.openapi.util.UserDataHolder
getUserData, putUserData
 
Methods inherited from interface com.intellij.openapi.util.Iconable
getIcon
 

Constructor Detail

KtScript

public KtScript(@NotNull
                com.intellij.lang.ASTNode node)
Method Detail

getBlockExpression

@NotNull
public KtBlockExpression getBlockExpression()

getDeclarations

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

accept

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

getModifierList

@Nullable
public KtModifierList getModifierList()
Specified by:
getModifierList in interface KtModifierListOwner

hasModifier

public boolean hasModifier(@NotNull
                           KtModifierKeywordToken modifier)
Specified by:
hasModifier in interface KtModifierListOwner

addModifier

public void addModifier(@NotNull
                        KtModifierKeywordToken modifier)
Specified by:
addModifier in interface KtModifierListOwner

removeModifier

public void removeModifier(@NotNull
                           KtModifierKeywordToken modifier)
Specified by:
removeModifier in interface KtModifierListOwner

addAnnotationEntry

@NotNull
public KtAnnotationEntry addAnnotationEntry(@NotNull
                                                    KtAnnotationEntry annotationEntry)
Specified by:
addAnnotationEntry in interface KtModifierListOwner

getAnnotationEntries

@NotNull
public java.util.List<KtAnnotationEntry> getAnnotationEntries()
Specified by:
getAnnotationEntries in interface KtAnnotated

getAnnotations

@NotNull
public java.util.List<KtAnnotation> getAnnotations()
Specified by:
getAnnotations in interface KtAnnotated

getDocComment

@Nullable
public KDoc getDocComment()
Specified by:
getDocComment in interface KtDeclaration