public class JetClass extends JetElementImplStub<T> implements JetClassOrObject
Constructor and Description |
---|
JetClass(com.intellij.lang.ASTNode node) |
JetClass(PsiJetClassStub stub) |
accept, acceptChildren, getLanguage, toString
clone, getContainingFile, getContext, getManager, getNode, getParent, getParentByStub, getParentByTree, getProject, getRequiredStubOrPsiChild, getStub, getStubOrPsiChild, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiParent, getStubOrPsiParentOfType, isPhysical, isValid, isWritable, setNode, setStub, subtreeChanged
add, addAfter, addBefore, addInternal, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, deleteChildInternal, deleteChildRange, findChildByFilter, findChildByType, findChildByType, findChildrenByType, findChildrenByType, findChildrenByType, findChildrenByType, findElementAt, findLastChildByType, findNotNullChildByFilter, findNotNullChildByType, findNotNullChildByType, getChildren, getCopyableUserData, getFirstChild, getLastChild, getNextSibling, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextRange, putCopyableUserData, replace, replaceChildInternal, textContains, textToCharArray
acceptChildren, canNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getNavigationElement, getOriginalElement, getReference, getReferences, getResolveScope, getUseScope, navigate, notNullChild, processDeclarations, textMatches, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
clearUserData, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getModifierList, getNameAsName
getNameAsSafeName
acceptChildren
canNavigate, canNavigateToSource, navigate
hasModifier
public JetClass(@NotNull com.intellij.lang.ASTNode node)
public JetClass(@NotNull PsiJetClassStub stub)
@NotNull public java.util.List<JetDeclaration> getDeclarations()
getDeclarations
in interface JetDeclarationContainer
public void accept(@NotNull JetVisitorVoid visitor)
accept
in interface JetElement
accept
in interface JetExpression
accept
in class JetElementImplStub<PsiJetClassStub>
public <R,D> R accept(@NotNull JetVisitor<R,D> visitor, D data)
accept
in interface JetElement
accept
in interface JetExpression
accept
in class JetElementImplStub<PsiJetClassStub>
@Nullable public JetParameterList getPrimaryConstructorParameterList()
@NotNull public java.util.List<JetParameter> getPrimaryConstructorParameters()
@Nullable public JetDelegationSpecifierList getDelegationSpecifierList()
getDelegationSpecifierList
in interface JetClassOrObject
@NotNull public java.util.List<JetDelegationSpecifier> getDelegationSpecifiers()
getDelegationSpecifiers
in interface JetClassOrObject
@Nullable public JetModifierList getPrimaryConstructorModifierList()
@NotNull public java.util.List<JetClassInitializer> getAnonymousInitializers()
getAnonymousInitializers
in interface JetClassOrObject
public boolean hasPrimaryConstructor()
hasPrimaryConstructor
in interface JetClassOrObject
public JetObjectDeclarationName getNameAsDeclaration()
getNameAsDeclaration
in interface JetClassOrObject
public JetClassBody getBody()
getBody
in interface JetClassOrObject
@Nullable public JetClassObject getClassObject()
public java.util.List<JetProperty> getProperties()
public boolean isTrait()
public boolean isEnum()
public boolean isAnnotation()
public boolean isInner()
@NotNull public com.intellij.psi.stubs.IStubElementType getElementType()
getElementType
in interface com.intellij.psi.StubBasedPsiElement<PsiJetClassStub>
getElementType
in class com.intellij.extapi.psi.StubBasedPsiElementBase<PsiJetClassStub>
public void delete() throws com.intellij.util.IncorrectOperationException
delete
in interface com.intellij.psi.PsiElement
delete
in class com.intellij.extapi.psi.ASTDelegatePsiElement
com.intellij.util.IncorrectOperationException
public boolean isEquivalentTo(com.intellij.psi.PsiElement another)
isEquivalentTo
in interface com.intellij.psi.PsiElement
isEquivalentTo
in class com.intellij.psi.impl.PsiElementBase
@NotNull public java.util.List<java.lang.String> getSuperNames()
public com.intellij.navigation.ItemPresentation getPresentation()
getPresentation
in interface com.intellij.navigation.NavigationItem
getPresentation
in class com.intellij.psi.impl.PsiElementBase
@Nullable public JetTypeParameterList getTypeParameterList()
@NotNull public java.util.List<JetTypeConstraint> getTypeConstraints()
getTypeConstraints
in interface JetTypeParameterListOwner
@NotNull public java.util.List<JetTypeParameter> getTypeParameters()
getTypeParameters
in interface JetTypeParameterListOwner
public java.lang.String getName()
getName
in interface com.intellij.navigation.NavigationItem
getName
in interface com.intellij.psi.PsiNamedElement
getName
in class com.intellij.psi.impl.PsiElementBase
public Name getNameAsName()
getNameAsName
in interface JetNamed
@NotNull public Name getNameAsSafeName()
getNameAsSafeName
in interface JetNamedDeclaration
public com.intellij.psi.PsiElement getNameIdentifier()
getNameIdentifier
in interface com.intellij.psi.PsiNameIdentifierOwner
public com.intellij.psi.PsiElement setName(@NonNls@NotNull java.lang.String name) throws com.intellij.util.IncorrectOperationException
setName
in interface com.intellij.psi.PsiNamedElement
com.intellij.util.IncorrectOperationException
public int getTextOffset()
getTextOffset
in interface com.intellij.psi.PsiElement
getTextOffset
in class com.intellij.extapi.psi.ASTDelegatePsiElement
@Nullable public JetModifierList getModifierList()
getModifierList
in interface JetModifierListOwner
public boolean hasModifier(JetToken modifier)
hasModifier
in interface JetModifierListOwner