public class JetObjectDeclaration extends JetElementImplStub<T> implements JetClassOrObject
| Constructor and Description |
|---|
JetObjectDeclaration(com.intellij.lang.ASTNode node) |
JetObjectDeclaration(PsiJetObjectStub stub) |
| Modifier and Type | Method and Description |
|---|---|
<R,D> R |
accept(JetVisitor<R,D> visitor,
D data) |
void |
accept(JetVisitorVoid visitor) |
void |
delete() |
java.util.List<JetClassInitializer> |
getAnonymousInitializers() |
JetClassBody |
getBody() |
java.util.List<JetDeclaration> |
getDeclarations() |
JetDelegationSpecifierList |
getDelegationSpecifierList() |
java.util.List<JetDelegationSpecifier> |
getDelegationSpecifiers() |
com.intellij.psi.stubs.IStubElementType |
getElementType() |
FqName |
getFqName()
Could be null for anonymous objects and object declared inside functions
|
JetModifierList |
getModifierList() |
java.lang.String |
getName() |
JetObjectDeclarationName |
getNameAsDeclaration() |
Name |
getNameAsName() |
Name |
getNameAsSafeName() |
com.intellij.psi.PsiElement |
getNameIdentifier() |
com.intellij.psi.PsiElement |
getObjectKeyword() |
int |
getTextOffset() |
boolean |
hasModifier(JetToken modifier) |
boolean |
hasPrimaryConstructor() |
boolean |
isObjectLiteral() |
boolean |
isTopLevel() |
com.intellij.psi.PsiElement |
setName(java.lang.String name) |
accept, acceptChildren, getLanguage, toStringclone, getContainingFile, getContext, getManager, getNode, getParent, getParentByStub, getParentByTree, getProject, getRequiredStubOrPsiChild, getStub, getStubOrPsiChild, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiParent, getStubOrPsiParentOfType, isPhysical, isValid, isWritable, setNode, setStub, subtreeChangedadd, 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, textToCharArrayacceptChildren, canNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getNavigationElement, getOriginalElement, getPresentation, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textMatches, textMatchesbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagsclearUserData, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, isUserDataEmpty, putUserData, putUserDataIfAbsent, replaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNameAsNamegetNameAsSafeNameacceptChildrenpublic JetObjectDeclaration(@NotNull com.intellij.lang.ASTNode node)
public JetObjectDeclaration(@NotNull PsiJetObjectStub stub)
@NotNull public com.intellij.psi.stubs.IStubElementType getElementType()
getElementType in interface com.intellij.psi.StubBasedPsiElement<PsiJetObjectStub>getElementType in class com.intellij.extapi.psi.StubBasedPsiElementBase<PsiJetObjectStub>public java.lang.String getName()
getName in interface com.intellij.navigation.NavigationItemgetName in interface com.intellij.psi.PsiNamedElementpublic FqName getFqName()
public boolean isTopLevel()
public com.intellij.psi.PsiElement getNameIdentifier()
getNameIdentifier in interface com.intellij.psi.PsiNameIdentifierOwnerpublic com.intellij.psi.PsiElement setName(@NonNls@NotNull java.lang.String name) throws com.intellij.util.IncorrectOperationException
setName in interface com.intellij.psi.PsiNamedElementcom.intellij.util.IncorrectOperationException@Nullable public JetObjectDeclarationName getNameAsDeclaration()
getNameAsDeclaration in interface JetClassOrObject@Nullable public JetModifierList getModifierList()
getModifierList in interface JetClassOrObjectgetModifierList in interface JetModifierListOwnerpublic boolean hasModifier(JetToken modifier)
hasModifier in interface JetModifierListOwner@Nullable public JetDelegationSpecifierList getDelegationSpecifierList()
getDelegationSpecifierList in interface JetClassOrObject@NotNull public java.util.List<JetDelegationSpecifier> getDelegationSpecifiers()
getDelegationSpecifiers in interface JetClassOrObject@NotNull public java.util.List<JetClassInitializer> getAnonymousInitializers()
getAnonymousInitializers in interface JetClassOrObjectpublic boolean hasPrimaryConstructor()
hasPrimaryConstructor in interface JetClassOrObjectpublic JetClassBody getBody()
getBody in interface JetClassOrObject@NotNull public java.util.List<JetDeclaration> getDeclarations()
getDeclarations in interface JetDeclarationContainerpublic void accept(@NotNull JetVisitorVoid visitor)
accept in interface JetElementaccept in interface JetExpressionaccept in class JetElementImplStub<PsiJetObjectStub>public <R,D> R accept(@NotNull JetVisitor<R,D> visitor, D data)
accept in interface JetElementaccept in interface JetExpressionaccept in class JetElementImplStub<PsiJetObjectStub>public boolean isObjectLiteral()
@NotNull public com.intellij.psi.PsiElement getObjectKeyword()
public void delete() throws com.intellij.util.IncorrectOperationException
delete in interface com.intellij.psi.PsiElementdelete in class com.intellij.extapi.psi.ASTDelegatePsiElementcom.intellij.util.IncorrectOperationExceptionpublic Name getNameAsName()
getNameAsName in interface JetNamed@NotNull public Name getNameAsSafeName()
getNameAsSafeName in interface JetNamedDeclarationpublic int getTextOffset()
getTextOffset in interface com.intellij.psi.PsiElementgetTextOffset in class com.intellij.extapi.psi.ASTDelegatePsiElement