public class LazyParseableElement extends CompositeElement
Iconable.IconFlags, Iconable.LastComputedIcon
EMPTY_ARRAY
FLAGS_LOCKED, ICON_PLACEHOLDER
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Constructor and Description |
---|
LazyParseableElement(IElementType type,
java.lang.CharSequence text) |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches() |
int |
copyTo(char [] buffer,
int start) |
java.lang.CharSequence |
getChars()
Returns same text getText() returns but might be more effective eliminating toString() transformation from internal CharSequence representation
|
TreeElement |
getFirstChildNode()
Returns the first child of this node in the tree.
|
TreeElement |
getLastChildNode()
Returns the last child of this node in the tree.
|
java.lang.String |
getText()
Returns the text of this node.
|
int |
getTextLength()
Returns the length of the node text.
|
int |
hc() |
boolean |
isParsed() |
void |
rawAddChildrenWithoutNotifications(TreeElement first) |
static void |
setParsingAllowed(boolean allowed) |
protected int |
textMatches(java.lang.CharSequence buffer,
int start) |
acceptTree, addChild, addChild, addChildren, addInternal, addLeaf, clone, countChildren, createPsiNoLock, deleteChildInternal, findChildByRole, findChildByRoleAsPsiElement, findChildByType, findChildByType, findChildByType, findChildByType, findLeafElementAt, findPsiChildByType, findPsiChildByType, getCachedLength, getChildren, getChildrenAsPsiElements, getChildrenAsPsiElements, getChildRole, getChildRole, getPsi, getPsi, rawAddChildren, rawFirstChild, rawLastChild, rawRemoveAllChildren, removeAllChildren, removeChild, removeRange, replaceAllChildrenToChildrenOf, replaceChild, replaceChildInternal, setPsi, subtreeChanged, textContains, textToCharArray
copyElement, equals, getElementType, getManager, getStartOffset, getStartOffsetInParent, getTextOffset, getTextRange, getTreeNext, getTreeParent, getTreePrev, invalidate, onInvalidated, rawInsertAfterMe, rawInsertBeforeMe, rawRemove, rawRemoveUpTo, rawRemoveUpToLast, rawReplaceWithList, textMatches, textMatches, textMatches, toString
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, putCopyableUserData
getUserData, putUserData
public LazyParseableElement(IElementType type, java.lang.CharSequence text)
public void clearCaches()
clearCaches
in class CompositeElement
public java.lang.String getText()
ASTNode
getText
in interface ASTNode
getText
in class CompositeElement
public java.lang.CharSequence getChars()
ASTNode
getChars
in interface ASTNode
getChars
in class CompositeElement
PsiElement.textMatches(java.lang.CharSequence)
,
ASTNode.textContains(char)
public int getTextLength()
ASTNode
getTextLength
in interface ASTNode
getTextLength
in class CompositeElement
public int hc()
hc
in class CompositeElement
protected int textMatches(java.lang.CharSequence buffer, int start)
textMatches
in class CompositeElement
public boolean isParsed()
public void rawAddChildrenWithoutNotifications(TreeElement first)
rawAddChildrenWithoutNotifications
in class CompositeElement
public TreeElement getFirstChildNode()
ASTNode
getFirstChildNode
in interface ASTNode
getFirstChildNode
in class CompositeElement
public TreeElement getLastChildNode()
ASTNode
getLastChildNode
in interface ASTNode
getLastChildNode
in class CompositeElement
public int copyTo(char [] buffer, int start)
public static void setParsingAllowed(boolean allowed)