org.jetbrains.kotlin.psi
Class KtDeclarationImpl

java.lang.Object
  extended by KtExpressionImpl
      extended by org.jetbrains.kotlin.psi.KtDeclarationImpl
All Implemented Interfaces:
com.intellij.openapi.util.Iconable, com.intellij.openapi.util.UserDataHolder, com.intellij.psi.PsiElement, KtAnnotated, KtDeclaration, KtExpression, KtModifierListOwner
Direct Known Subclasses:
KtDestructuringDeclaration, KtDestructuringDeclarationEntry, KtFunctionNotStubbed

public abstract class KtDeclarationImpl
extends KtExpressionImpl
implements KtDeclaration


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
KtDeclarationImpl(com.intellij.lang.ASTNode node)
           
 
Method Summary
 KtAnnotationEntry addAnnotationEntry(KtAnnotationEntry annotationEntry)
           
 void addModifier(KtModifierKeywordToken modifier)
           
 java.util.List<KtAnnotationEntry> getAnnotationEntries()
           
 java.util.List<KtAnnotation> getAnnotations()
           
 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 org.jetbrains.kotlin.psi.KtExpression
accept
 
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

KtDeclarationImpl

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

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