public class ForeignLeafPsiElement extends LeafPsiElement
Iconable.IconFlags, Iconable.LastComputedIcon
EMPTY_ARRAY
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
ForeignLeafPsiElement(ForeignLeafType type,
java.lang.CharSequence text) |
Modifier and Type | Method and Description |
---|---|
LeafElement |
findLeafElementAt(int offset)
Finds a leaf child node at the specified offset from the start of the text range of this node.
|
ForeignLeafType |
getForeignType() |
int |
getStartOffset()
Returns the starting offset of the node text in the document.
|
int |
getTextLength()
Returns the length of the node text.
|
boolean |
textMatches(java.lang.CharSequence seq)
Checks if the text of this PSI element is equal to the specified character sequence.
|
protected int |
textMatches(java.lang.CharSequence buffer,
int start) |
boolean |
textMatches(PsiElement element)
Checks if the text of this PSI element is equal to the text of the specified PSI element.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getFirstChild, getLanguage, getLastChild, getName, getNavigationElement, getNextSibling, getNode, getOriginalElement, getParent, getPresentation, getPrevSibling, getProject, getPsi, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, navigate, processDeclarations, replace
acceptTree, addChild, addChild, addChildren, addLeaf, charAt, clone, copyTo, findChildByType, findChildByType, findChildByType, findChildByType, getCachedLength, getChars, getChildren, getFirstChildNode, getLastChildNode, getPsi, getText, hc, rawReplaceWithText, removeChild, removeRange, replaceAllChildrenToChildrenOf, replaceChild, replaceWithText, textContains, textMatches, textToCharArray
clearCaches, copyElement, equals, getElementType, getManager, getStartOffsetInParent, getTextOffset, getTextRange, getTreeNext, getTreeParent, getTreePrev, invalidate, onInvalidated, rawInsertAfterMe, rawInsertBeforeMe, rawRemove, rawRemoveUpTo, rawRemoveUpToLast, rawReplaceWithList
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCopyableUserData, getManager, getOwnReferences, getStartOffsetInParent, getText, getTextOffset, getTextRange, getTextRangeInParent, putCopyableUserData, textContains, textToCharArray
getUserData, putUserData
getCopyableUserData, putCopyableUserData
public ForeignLeafPsiElement(ForeignLeafType type, java.lang.CharSequence text)
public LeafElement findLeafElementAt(int offset)
ASTNode
findLeafElementAt
in interface ASTNode
findLeafElementAt
in class LeafElement
offset
- the relative offset for which the child node is requested.public boolean textMatches(java.lang.CharSequence seq)
PsiElement
textMatches
in interface PsiElement
textMatches
in class TreeElement
seq
- the character sequence to compare with.protected int textMatches(java.lang.CharSequence buffer, int start)
textMatches
in class LeafElement
public boolean textMatches(PsiElement element)
PsiElement
textMatches
in interface PsiElement
textMatches
in class TreeElement
element
- the element to compare the text with.public int getTextLength()
ASTNode
getTextLength
in interface ASTNode
getTextLength
in interface PsiElement
getTextLength
in class LeafElement
public int getStartOffset()
ASTNode
getStartOffset
in interface ASTNode
getStartOffset
in class TreeElement
public ForeignLeafType getForeignType()
public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class LeafPsiElement