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, 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, getPresentation, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, 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
getNameAsName
getNameAsSafeName
acceptChildren
public 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.NavigationItem
getName
in interface com.intellij.psi.PsiNamedElement
public FqName getFqName()
public boolean isTopLevel()
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
@Nullable public JetObjectDeclarationName getNameAsDeclaration()
getNameAsDeclaration
in interface JetClassOrObject
@Nullable public JetModifierList getModifierList()
getModifierList
in interface JetClassOrObject
getModifierList
in interface JetModifierListOwner
public 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 JetClassOrObject
public boolean hasPrimaryConstructor()
hasPrimaryConstructor
in interface JetClassOrObject
public JetClassBody getBody()
getBody
in interface JetClassOrObject
@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<PsiJetObjectStub>
public <R,D> R accept(@NotNull JetVisitor<R,D> visitor, D data)
accept
in interface JetElement
accept
in interface JetExpression
accept
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.PsiElement
delete
in class com.intellij.extapi.psi.ASTDelegatePsiElement
com.intellij.util.IncorrectOperationException
public Name getNameAsName()
getNameAsName
in interface JetNamed
@NotNull public Name getNameAsSafeName()
getNameAsSafeName
in interface JetNamedDeclaration
public int getTextOffset()
getTextOffset
in interface com.intellij.psi.PsiElement
getTextOffset
in class com.intellij.extapi.psi.ASTDelegatePsiElement