public abstract class TreeElement extends ElementBase implements ASTNode, java.lang.Cloneable
Iconable.IconFlags, Iconable.LastComputedIcon| Modifier and Type | Field and Description | 
|---|---|
| static TreeElement[] | EMPTY_ARRAY | 
FLAGS_LOCKED, ICON_PLACEHOLDERICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Constructor and Description | 
|---|
| TreeElement(IElementType type) | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | acceptTree(TreeElementVisitor visitor) | 
| void | clearCaches() | 
| java.lang.Object | clone()Creates and returns a deep copy of the AST tree part starting at this node. | 
| ASTNode | copyElement()Creates a copy of the entire AST tree containing this node and returns a counterpart
 of this node in the resulting tree. | 
| boolean | equals(java.lang.Object obj) | 
| abstract LeafElement | findLeafElementAt(int offset)Finds a leaf child node at the specified offset from the start of the text range of this node. | 
| abstract int | getCachedLength() | 
| IElementType | getElementType()Returns the type of this node. | 
| abstract TreeElement | getFirstChildNode()Returns the first child of this node in the tree. | 
| abstract TreeElement | getLastChildNode()Returns the last child of this node in the tree. | 
| PsiManagerEx | getManager() | 
| int | getStartOffset()Returns the starting offset of the node text in the document. | 
| int | getStartOffsetInParent()Returns the starting offset of the node text relative to  ASTNode.getTreeParent(). | 
| int | getTextOffset() | 
| TextRange | getTextRange()Returns the text range (a combination of starting offset in the document and length) for this node. | 
| TreeElement | getTreeNext()Returns the next sibling of this node in the tree. | 
| CompositeElement | getTreeParent()Returns the parent of this node in the tree. | 
| TreeElement | getTreePrev()Returns the previous sibling of this node in the tree. | 
| abstract int | hc() | 
| protected void | invalidate() | 
| protected void | onInvalidated() | 
| void | rawInsertAfterMe(TreeElement firstNew) | 
| void | rawInsertBeforeMe(TreeElement firstNew) | 
| void | rawRemove() | 
| void | rawRemoveUpTo(TreeElement end) | 
| void | rawRemoveUpToLast() | 
| void | rawReplaceWithList(TreeElement firstNew) | 
| boolean | textMatches(java.lang.CharSequence seq) | 
| protected abstract int | textMatches(java.lang.CharSequence buffer,
           int start) | 
| boolean | textMatches(java.lang.CharSequence buffer,
           int startOffset,
           int endOffset) | 
| boolean | textMatches(PsiElement element) | 
| abstract char [] | textToCharArray() | 
| java.lang.String | toString() | 
buildRowIcon, 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, waitaddChild, addChild, addChildren, addLeaf, findChildByType, findChildByType, findChildByType, findChildByType, getChars, getChildren, getCopyableUserData, getPsi, getPsi, getText, getTextLength, putCopyableUserData, removeChild, removeRange, replaceAllChildrenToChildrenOf, replaceChild, textContainsgetUserData, putUserDatapublic static final TreeElement[] EMPTY_ARRAY
public TreeElement(IElementType type)
public java.lang.Object clone()
ASTNodeclone in interface ASTNodeclone in class UserDataHolderBasepublic ASTNode copyElement()
ASTNodecopyElement in interface ASTNodepublic PsiManagerEx getManager()
public abstract LeafElement findLeafElementAt(int offset)
ASTNodefindLeafElementAt in interface ASTNodeoffset - the relative offset for which the child node is requested.public abstract char [] textToCharArray()
public abstract TreeElement getFirstChildNode()
ASTNodegetFirstChildNode in interface ASTNodepublic abstract TreeElement getLastChildNode()
ASTNodegetLastChildNode in interface ASTNodepublic abstract int getCachedLength()
public TextRange getTextRange()
ASTNodegetTextRange in interface ASTNodepublic int getStartOffset()
ASTNodegetStartOffset in interface ASTNodepublic final int getStartOffsetInParent()
ASTNodeASTNode.getTreeParent().getStartOffsetInParent in interface ASTNodepublic int getTextOffset()
public boolean textMatches(java.lang.CharSequence buffer,
                           int startOffset,
                           int endOffset)
protected abstract int textMatches(java.lang.CharSequence buffer,
                                   int start)
public boolean textMatches(java.lang.CharSequence seq)
public boolean textMatches(PsiElement element)
public java.lang.String toString()
toString in class java.lang.Objectpublic final CompositeElement getTreeParent()
ASTNodegetTreeParent in interface ASTNodepublic final TreeElement getTreePrev()
ASTNodegetTreePrev in interface ASTNodepublic final TreeElement getTreeNext()
ASTNodegetTreeNext in interface ASTNodepublic void clearCaches()
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic abstract int hc()
public abstract void acceptTree(TreeElementVisitor visitor)
protected void onInvalidated()
public void rawInsertBeforeMe(TreeElement firstNew)
public void rawInsertAfterMe(TreeElement firstNew)
public void rawRemove()
public void rawReplaceWithList(TreeElement firstNew)
protected void invalidate()
public void rawRemoveUpToLast()
public void rawRemoveUpTo(TreeElement end)
public IElementType getElementType()
ASTNodegetElementType in interface ASTNode