public final class ParseTree extends Object implements IParseTree
IParseTree.Searchpublic IType getEnclosingType()
getEnclosingType in interface IParseTreepublic IScriptPartId getScriptPartId()
getScriptPartId in interface IParseTreepublic int getOffset()
getOffset in interface IParseTreepublic int getLength()
getLength in interface IParseTreepublic void setLength(int iLength)
setLength in interface IParseTreepublic int getLineNum()
getLineNum in interface IParseTreepublic int getColumn()
getColumn in interface IParseTreepublic ParsedElement getParsedElement()
getParsedElement in interface IParseTreepublic int getExtent()
getExtent in interface IParseTreepublic boolean contains(int iPosition)
contains in interface IParseTreeiPosition - Any position within the source.public boolean contains(IParseTree l)
contains in interface IParseTreel - A location to check.public boolean containsOrBorders(int iPosition,
boolean strict)
containsOrBorders in interface IParseTreepublic boolean containsOrBorders(IParseTree l, boolean strict)
containsOrBorders in interface IParseTreepublic ParseTree getDeepestLocation(boolean statementsOnly, int iStart, int iEnd, boolean strict)
getDeepestLocation in interface IParseTreepublic boolean isAncestorOf(IParseTree l)
isAncestorOf in interface IParseTreepublic ParseTree getDeepestLocation(int iPosition, boolean strict)
getDeepestLocation in interface IParseTreeiPosition - The location to check.strict - Whether to match strictly or accept white spaces to the rightpublic ParseTree getDeepestLocation(int iStart, int iEnd, boolean strict)
getDeepestLocation in interface IParseTreeiStart - The start of the segment (inclusive)iEnd - The end of the segment (inclusive)strict - Whether to match strictly or accept white spaces to the rightpublic ParseTree getDeepestStatementLocation(int iPosition, boolean strict)
getDeepestStatementLocation in interface IParseTreeiPosition - The location to check.strict - Whether to match strictly or accept white spaces to the rightpublic ParseTree getStatementAtLine(int iLineNum, Class clsSkip)
getStatementAtLine in interface IParseTreeiLineNum - The one based line number to check.clsSkip - A statement sublcass to ignore. Optional.public void addChild(IParseTree l)
addChild in interface IParseTreel - The location to add.public void addChild(int iIndex,
IParseTree l)
public void removeChild(IParseTree l)
removeChild in interface IParseTreepublic List<IParseTree> getChildren()
getChildren in interface IParseTreepublic int getChildCount()
public void setParent(IParseTree l)
setParent in interface IParseTreel - The parent location.public IParseTree getParent()
getParent in interface IParseTreepublic IParseTree getParentOtherThanThis()
getParentOtherThanThis in interface IParseTreepublic boolean areOffsetAndExtentEqual(IParseTree location)
areOffsetAndExtentEqual in interface IParseTreelocation - Location to checkpublic String toString()
toString in interface IParseTreetoString in class Objectpublic void initLocation(ParsedElement pe, int iOffset, int iLength)
public void compactParseTree()
public void clearParseTreeInformation()
clearParseTreeInformation in interface IParseTreepublic boolean areAllChildrenAfterPosition(int caret)
areAllChildrenAfterPosition in interface IParseTreepublic List<IParseTree> getDominatingLocationList()
getDominatingLocationList in interface IParseTreepublic List<IParseTree> getChildrenBefore(IParseTree parseTree)
getChildrenBefore in interface IParseTreepublic boolean isSiblingOf(IParseTree deepestAtEnd)
isSiblingOf in interface IParseTreepublic ParseTree getChildAfter(int point)
getChildAfter in interface IParseTreepublic ParseTree getChildBefore(int point)
getChildBefore in interface IParseTreepublic ParseTree getChildBefore(IParseTree child)
getChildBefore in interface IParseTreepublic ParseTree getChildAfter(IParseTree child)
getChildAfter in interface IParseTreepublic ParseTree getFirstChildWithParsedElementType(Class<? extends IParsedElement> aClass)
getFirstChildWithParsedElementType in interface IParseTreepublic ParseTree getLastChildWithParsedElementType(Class<? extends IParsedElement> aClass)
getLastChildWithParsedElementType in interface IParseTreepublic ParseTree getLastChild()
getLastChild in interface IParseTreepublic ParseTree getNextSibling()
getNextSibling in interface IParseTreepublic ParseTree getPreviousSibling()
getPreviousSibling in interface IParseTreepublic ParseTree getDeepestFirstChild()
getDeepestFirstChild in interface IParseTreepublic Collection<IParseTree> findDescendantsWithParsedElementType(Class type)
findDescendantsWithParsedElementType in interface IParseTreepublic void addUnder(IParseTree parent)
addUnder in interface IParseTreepublic IFunctionStatement getEnclosingFunctionStatement()
getEnclosingFunctionStatement in interface IParseTreepublic final IParseTree getMatchingElement(int iStart, int iLength)
getMatchingElement in interface IParseTreepublic String getTreeOutline()
public String getTextFromTokens()
getTextFromTokens in interface IParseTreepublic List<IParseTree> getChildrenSorted()
public boolean isAncestor(IParseTree child)
isAncestor in interface IParseTreeCopyright © 2015. All rights reserved.