class ANTLRPsiLeafNode extends LeafPsiElement
A leaf node you can use as a superclass for your PSI trees. You don't have to use it of course, but it gives you basic simple scoping behavior via getContext().
I recommends creating a subclass for identifiers, such as MyLanguageIDNode. To enable rename, find usages, etc... that node will need to implement PsiNamedElement.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ANTLRPsiLeafNode
- LeafPsiElement
- NavigationItem
- Navigatable
- PsiElement
- LeafElement
- TreeElement
- Cloneable
- ReparseableASTNode
- ASTNode
- ElementBase
- Iconable
- UserDataHolderBase
- UserDataHolderEx
- UserDataHolder
- AtomicReference
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ANTLRPsiLeafNode(type: IElementType, text: CharSequence)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def accept(arg0: PsiElementVisitor): Unit
- Definition Classes
- LeafPsiElement → PsiElement
- def acceptChildren(arg0: PsiElementVisitor): Unit
- Definition Classes
- LeafPsiElement → PsiElement
- def acceptTree(arg0: TreeElementVisitor): Unit
- Definition Classes
- LeafElement → TreeElement
- final def accumulateAndGet(arg0: KeyFMap, arg1: BinaryOperator[KeyFMap]): KeyFMap
- Definition Classes
- AtomicReference
- def add(arg0: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def addAfter(arg0: PsiElement, arg1: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def addBefore(arg0: PsiElement, arg1: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def addChild(arg0: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def addChild(arg0: ASTNode, arg1: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def addChildren(arg0: ASTNode, arg1: ASTNode, arg2: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def addLeaf(arg0: IElementType, arg1: CharSequence, arg2: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def addRange(arg0: PsiElement, arg1: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def addRangeAfter(arg0: PsiElement, arg1: PsiElement, arg2: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def addRangeBefore(arg0: PsiElement, arg1: PsiElement, arg2: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def applyDeleteOnReparse(arg0: ASTNode): Unit
- Definition Classes
- ReparseableASTNode
- def applyInsertOnReparse(arg0: ASTNode, arg1: ASTNode): Unit
- Definition Classes
- ReparseableASTNode
- def applyReplaceFileOnReparse(arg0: PsiFile, arg1: FileASTNode): Unit
- Definition Classes
- ReparseableASTNode
- final def applyReplaceOnReparse(arg0: ASTNode): Unit
- Definition Classes
- TreeElement → ReparseableASTNode
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canNavigate(): Boolean
- Definition Classes
- LeafPsiElement → Navigatable
- def canNavigateToSource(): Boolean
- Definition Classes
- LeafPsiElement → Navigatable
- def changeUserMap(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Attributes
- protected[util]
- Definition Classes
- UserDataHolderBase
- def charAt(arg0: Int): Char
- Definition Classes
- LeafElement
- def checkAdd(arg0: PsiElement): Unit
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def checkDelete(): Unit
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def clearCaches(): Unit
- Definition Classes
- TreeElement
- def clearUserData(): Unit
- Attributes
- protected[util]
- Definition Classes
- UserDataHolderBase
- def clone(): LeafElement
- Definition Classes
- LeafElement → TreeElement → ASTNode → UserDataHolderBase → AnyRef
- final def compareAndExchange(arg0: KeyFMap, arg1: KeyFMap): KeyFMap
- Definition Classes
- AtomicReference
- final def compareAndExchangeAcquire(arg0: KeyFMap, arg1: KeyFMap): KeyFMap
- Definition Classes
- AtomicReference
- final def compareAndExchangeRelease(arg0: KeyFMap, arg1: KeyFMap): KeyFMap
- Definition Classes
- AtomicReference
- final def compareAndSet(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Definition Classes
- AtomicReference
- def computeBaseIcon(arg0: Int): Icon
- Attributes
- protected[impl]
- Definition Classes
- ElementBase
- def copy(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def copyCopyableDataTo(arg0: UserDataHolderBase): Unit
- Definition Classes
- UserDataHolderBase
- def copyElement(): ASTNode
- Definition Classes
- TreeElement → ASTNode
- def copyTo(arg0: Array[Char], arg1: Int): Int
- Definition Classes
- LeafElement
- def copyUserDataTo(arg0: UserDataHolderBase): Unit
- Definition Classes
- UserDataHolderBase
- def delete(): Unit
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def deleteChildRange(arg0: PsiElement, arg1: PsiElement): Unit
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(arg0: AnyRef): Boolean
- Definition Classes
- TreeElement → AnyRef → Any
- def findChildByType(arg0: TokenSet, arg1: ASTNode): ASTNode
- Definition Classes
- LeafElement → ASTNode
- def findChildByType(arg0: TokenSet): ASTNode
- Definition Classes
- LeafElement → ASTNode
- def findChildByType(arg0: IElementType, arg1: ASTNode): ASTNode
- Definition Classes
- LeafElement → ASTNode
- def findChildByType(arg0: IElementType): ASTNode
- Definition Classes
- LeafElement → ASTNode
- def findElementAt(arg0: Int): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def findLeafElementAt(arg0: Int): LeafElement
- Definition Classes
- LeafElement → TreeElement → ASTNode
- def findReferenceAt(arg0: Int): PsiReference
- Definition Classes
- LeafPsiElement → PsiElement
- final def get(): KeyFMap
- Definition Classes
- AtomicReference
- final def getAcquire(): KeyFMap
- Definition Classes
- AtomicReference
- def getAdjustedBaseIcon(arg0: Icon, arg1: Int): Icon
- Attributes
- protected[impl]
- Definition Classes
- ElementBase
- final def getAndAccumulate(arg0: KeyFMap, arg1: BinaryOperator[KeyFMap]): KeyFMap
- Definition Classes
- AtomicReference
- final def getAndSet(arg0: KeyFMap): KeyFMap
- Definition Classes
- AtomicReference
- final def getAndUpdate(arg0: UnaryOperator[KeyFMap]): KeyFMap
- Definition Classes
- AtomicReference
- def getBaseIcon(): Icon
- Attributes
- protected[impl]
- Definition Classes
- ElementBase
- def getCachedLength(): Int
- Definition Classes
- LeafElement → TreeElement
- def getChars(): CharSequence
- Definition Classes
- LeafElement → ASTNode
- def getChildren(): Array[PsiElement]
- Definition Classes
- LeafPsiElement → PsiElement
- def getChildren(arg0: TokenSet): Array[ASTNode]
- Definition Classes
- LeafElement → ASTNode
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getContainingFile(): PsiFile
- Definition Classes
- LeafPsiElement → PsiElement
- def getContext(): PsiElement
We're a leaf node so must start looking at parent node for a scope.
We're a leaf node so must start looking at parent node for a scope. This assumes a reasonable getContext() implementation for your internal, non-leaf PSI nodes. It's easiest to use
ANTLRPsiNode
subclasses for your internal notes.- Definition Classes
- ANTLRPsiLeafNode → LeafPsiElement → PsiElement
- Annotations
- @Override()
- def getCopyableUserData[T <: AnyRef](arg0: Key[T]): T
- Definition Classes
- UserDataHolderBase
- def getElementIcon(arg0: Int): Icon
- Attributes
- protected[impl]
- Definition Classes
- ElementBase
- def getElementType(): IElementType
- Definition Classes
- TreeElement → ASTNode
- def getFirstChild(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def getFirstChildNode(): TreeElement
- Definition Classes
- LeafElement → TreeElement → ASTNode
- def getIcon(arg0: Int): Icon
- Definition Classes
- ElementBase → Iconable
- def getLanguage(): Language
- Definition Classes
- LeafPsiElement → PsiElement
- def getLastChild(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def getLastChildNode(): TreeElement
- Definition Classes
- LeafElement → TreeElement → ASTNode
- def getName(): String
- Definition Classes
- LeafPsiElement → NavigationItem
- def getNavigationElement(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def getNextSibling(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def getNode(): ASTNode
- Definition Classes
- LeafPsiElement → PsiElement
- final def getOpaque(): KeyFMap
- Definition Classes
- AtomicReference
- def getOriginalElement(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def getOwnDeclarations(): Collection[_ <: PsiSymbolDeclaration]
- Definition Classes
- PsiElement
- def getOwnReferences(): Collection[_ <: PsiSymbolReference]
- Definition Classes
- PsiElement
- def getParent(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- final def getPlain(): KeyFMap
- Definition Classes
- AtomicReference
- def getPresentation(): ItemPresentation
- Definition Classes
- LeafPsiElement → NavigationItem
- def getPrevSibling(): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- def getProject(): Project
- Definition Classes
- LeafPsiElement → PsiElement
- def getPsi(): PsiElement
- Definition Classes
- LeafPsiElement → LeafElement → ASTNode
- def getPsi[T <: PsiElement](arg0: Class[T]): T
- Definition Classes
- LeafElement → ASTNode
- def getReference(): PsiReference
- Definition Classes
- LeafPsiElement → PsiElement
- def getReferences(): Array[PsiReference]
- Definition Classes
- LeafPsiElement → PsiElement
- def getResolveScope(): GlobalSearchScope
- Definition Classes
- LeafPsiElement → PsiElement
- def getStartOffset(): Int
- Definition Classes
- TreeElement → ASTNode
- final def getStartOffsetInParent(): Int
- Definition Classes
- TreeElement → ASTNode
- def getText(): String
- Definition Classes
- LeafElement → ASTNode
- def getTextLength(): Int
- Definition Classes
- LeafElement → ASTNode
- def getTextOffset(): Int
- Definition Classes
- TreeElement
- def getTextRange(): TextRange
- Definition Classes
- TreeElement → ASTNode
- def getTextRangeInParent(): TextRange
- Definition Classes
- PsiElement
- final def getTreeNext(): TreeElement
- Definition Classes
- TreeElement → ASTNode
- final def getTreeParent(): CompositeElement
- Definition Classes
- TreeElement → ASTNode
- final def getTreePrev(): TreeElement
- Definition Classes
- TreeElement → ASTNode
- def getUseScope(): SearchScope
- Definition Classes
- LeafPsiElement → PsiElement
- def getUserData[T <: AnyRef](arg0: Key[T]): T
- Definition Classes
- UserDataHolderBase → UserDataHolder
- def getUserDataString(): String
- Definition Classes
- UserDataHolderBase
- def getUserMap(): KeyFMap
- Attributes
- protected[util]
- Definition Classes
- UserDataHolderBase
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hc(): Int
- Definition Classes
- LeafElement → TreeElement
- def invalidate(): Unit
- Attributes
- protected[tree]
- Definition Classes
- TreeElement
- def isCopyableDataEqual(arg0: UserDataHolderBase): Boolean
- Attributes
- protected[util]
- Definition Classes
- UserDataHolderBase
- def isEquivalentTo(arg0: PsiElement): Boolean
- Definition Classes
- LeafPsiElement → PsiElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPhysical(): Boolean
- Definition Classes
- LeafPsiElement → PsiElement
- def isUserDataEmpty(): Boolean
- Definition Classes
- UserDataHolderBase
- def isValid(): Boolean
- Definition Classes
- LeafPsiElement → PsiElement
- def isVisibilitySupported(): Boolean
- Attributes
- protected[impl]
- Definition Classes
- ElementBase
- def isWritable(): Boolean
- Definition Classes
- LeafPsiElement → PsiElement
- final def lazySet(arg0: KeyFMap): Unit
- Definition Classes
- AtomicReference
- def navigate(arg0: Boolean): Unit
- Definition Classes
- LeafPsiElement → Navigatable
- def navigationRequest(): NavigationRequest
- Definition Classes
- Navigatable
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def onInvalidated(): Unit
- Attributes
- protected[tree]
- Definition Classes
- TreeElement
- def processDeclarations(arg0: PsiScopeProcessor, arg1: ResolveState, arg2: PsiElement, arg3: PsiElement): Boolean
- Definition Classes
- LeafPsiElement → PsiElement
- def putCopyableUserData[T <: AnyRef](arg0: Key[T], arg1: T): Unit
- Definition Classes
- UserDataHolderBase
- def putUserData[T <: AnyRef](arg0: Key[T], arg1: T): Unit
- Definition Classes
- UserDataHolderBase → UserDataHolder
- def putUserDataIfAbsent[T <: AnyRef](arg0: Key[T], arg1: T): T
- Definition Classes
- UserDataHolderBase → UserDataHolderEx
- def rawInsertAfterMe(arg0: TreeElement): Unit
- Definition Classes
- TreeElement
- def rawInsertBeforeMe(arg0: TreeElement): Unit
- Definition Classes
- TreeElement
- def rawRemove(): Unit
- Definition Classes
- TreeElement
- def rawRemoveUpTo(arg0: TreeElement): Unit
- Definition Classes
- TreeElement
- def rawRemoveUpToLast(): Unit
- Definition Classes
- TreeElement
- def rawReplaceWithList(arg0: TreeElement): Unit
- Definition Classes
- TreeElement
- def rawReplaceWithText(arg0: String): LeafElement
- Definition Classes
- LeafElement
- def removeChild(arg0: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def removeRange(arg0: ASTNode, arg1: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def replace(arg0: PsiElement): PsiElement
- Definition Classes
- LeafPsiElement → PsiElement
- Annotations
- @throws(classOf[com.intellij.util.IncorrectOperationException])
- def replace[T <: AnyRef](arg0: Key[T], arg1: T, arg2: T): Boolean
- Definition Classes
- UserDataHolderBase → UserDataHolderEx
- def replaceAllChildrenToChildrenOf(arg0: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def replaceChild(arg0: ASTNode, arg1: ASTNode): Unit
- Definition Classes
- LeafElement → ASTNode
- def replaceWithText(arg0: String): LeafElement
- Definition Classes
- LeafElement
- final def set(arg0: KeyFMap): Unit
- Definition Classes
- AtomicReference
- final def setOpaque(arg0: KeyFMap): Unit
- Definition Classes
- AtomicReference
- final def setPlain(arg0: KeyFMap): Unit
- Definition Classes
- AtomicReference
- final def setRelease(arg0: KeyFMap): Unit
- Definition Classes
- AtomicReference
- def setUserMap(arg0: KeyFMap): Unit
- Attributes
- protected[util]
- Definition Classes
- UserDataHolderBase
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def textContains(arg0: Char): Boolean
- Definition Classes
- LeafElement → ASTNode
- def textMatches(arg0: CharSequence, arg1: Int, arg2: Int): Boolean
- Definition Classes
- LeafElement → TreeElement
- def textMatches(arg0: CharSequence, arg1: Int): Int
- Attributes
- protected[tree]
- Definition Classes
- LeafElement → TreeElement
- def textMatches(arg0: PsiElement): Boolean
- Definition Classes
- TreeElement
- def textMatches(arg0: CharSequence): Boolean
- Definition Classes
- TreeElement
- def textToCharArray(): Array[Char]
- Definition Classes
- LeafElement → TreeElement
- def toString(): String
- Definition Classes
- LeafPsiElement → PsiElement → TreeElement → AtomicReference → AnyRef → Any
- final def updateAndGet(arg0: UnaryOperator[KeyFMap]): KeyFMap
- Definition Classes
- AtomicReference
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def weakCompareAndSetAcquire(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Definition Classes
- AtomicReference
- final def weakCompareAndSetPlain(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Definition Classes
- AtomicReference
- final def weakCompareAndSetRelease(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Definition Classes
- AtomicReference
- final def weakCompareAndSetVolatile(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Definition Classes
- AtomicReference
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- final def weakCompareAndSet(arg0: KeyFMap, arg1: KeyFMap): Boolean
- Definition Classes
- AtomicReference
- Annotations
- @Deprecated
- Deprecated
(Since version 9)