org.jetbrains.kotlin.psi
Class JetScript
java.lang.Object
JetExpressionImpl
org.jetbrains.kotlin.psi.JetScript
- All Implemented Interfaces:
- com.intellij.navigation.NavigationItem, com.intellij.openapi.util.Iconable, com.intellij.openapi.util.UserDataHolder, com.intellij.pom.Navigatable, com.intellij.psi.NavigatablePsiElement, com.intellij.psi.PsiElement, JetAnnotated, JetDeclaration, JetDeclarationContainer, JetElement, JetExpression, JetModifierListOwner
public class JetScript
- extends JetExpressionImpl
- implements JetDeclarationContainer
Fields inherited from interface com.intellij.navigation.NavigationItem |
EMPTY_NAVIGATION_ITEM_ARRAY |
Constructor Summary |
JetScript(com.intellij.lang.ASTNode node)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.intellij.navigation.NavigationItem |
getName, getPresentation |
Methods inherited from interface com.intellij.pom.Navigatable |
canNavigate, canNavigateToSource, navigate |
JetScript
public JetScript(@NotNull
com.intellij.lang.ASTNode node)
getBlockExpression
@NotNull
public JetBlockExpression getBlockExpression()
getDeclarations
@NotNull
public java.util.List<JetDeclaration> getDeclarations()
- Specified by:
getDeclarations
in interface JetDeclarationContainer
accept
public <R,D> R accept(@NotNull
JetVisitor<R,D> visitor,
D data)
- Specified by:
accept
in interface JetElement
- Specified by:
accept
in interface JetExpression
getModifierList
@Nullable
public JetModifierList getModifierList()
- Specified by:
getModifierList
in interface JetModifierListOwner
hasModifier
public boolean hasModifier(@NotNull
JetModifierKeywordToken modifier)
- Specified by:
hasModifier
in interface JetModifierListOwner
addModifier
public void addModifier(@NotNull
JetModifierKeywordToken modifier)
- Specified by:
addModifier
in interface JetModifierListOwner
removeModifier
public void removeModifier(@NotNull
JetModifierKeywordToken modifier)
- Specified by:
removeModifier
in interface JetModifierListOwner
getAnnotationEntries
@NotNull
public java.util.List<JetAnnotationEntry> getAnnotationEntries()
- Specified by:
getAnnotationEntries
in interface JetAnnotated
getAnnotations
@NotNull
public java.util.List<JetAnnotation> getAnnotations()
- Specified by:
getAnnotations
in interface JetAnnotated
getDocComment
@Nullable
public KDoc getDocComment()
- Specified by:
getDocComment
in interface JetDeclaration