public class ForeignLeafPsiElement extends LeafPsiElement
Iconable.IconFlags, Iconable.LastComputedIconEMPTY_ARRAYFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_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, replaceacceptTree, 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, textToCharArrayclearCaches, copyElement, equals, getElementType, getManager, getStartOffsetInParent, getTextOffset, getTextRange, getTreeNext, getTreeParent, getTreePrev, invalidate, onInvalidated, rawInsertAfterMe, rawInsertBeforeMe, rawRemove, rawRemoveUpTo, rawRemoveUpToLast, rawReplaceWithListbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCopyableUserData, getManager, getOwnReferences, getStartOffsetInParent, getText, getTextOffset, getTextRange, getTextRangeInParent, putCopyableUserData, textContains, textToCharArraygetUserData, putUserDatagetCopyableUserData, putCopyableUserDatapublic ForeignLeafPsiElement(ForeignLeafType type, java.lang.CharSequence text)
public LeafElement findLeafElementAt(int offset)
ASTNodefindLeafElementAt in interface ASTNodefindLeafElementAt in class LeafElementoffset - the relative offset for which the child node is requested.public boolean textMatches(java.lang.CharSequence seq)
PsiElementtextMatches in interface PsiElementtextMatches in class TreeElementseq - the character sequence to compare with.protected int textMatches(java.lang.CharSequence buffer,
int start)
textMatches in class LeafElementpublic boolean textMatches(PsiElement element)
PsiElementtextMatches in interface PsiElementtextMatches in class TreeElementelement - the element to compare the text with.public int getTextLength()
ASTNodegetTextLength in interface ASTNodegetTextLength in interface PsiElementgetTextLength in class LeafElementpublic int getStartOffset()
ASTNodegetStartOffset in interface ASTNodegetStartOffset in class TreeElementpublic ForeignLeafType getForeignType()
public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class LeafPsiElement