Package gw.lang.parser
Interface IParseTree
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ParseTree
public interface IParseTree extends Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IParseTree.Search
-
Method Summary
-
-
-
Method Detail
-
getEnclosingType
IType getEnclosingType()
-
getScriptPartId
IScriptPartId getScriptPartId()
-
getOffset
int getOffset()
-
getLength
int getLength()
-
setLength
void setLength(int iLength)
-
getLineNum
int getLineNum()
-
getColumn
int getColumn()
-
getParsedElement
IParsedElement getParsedElement()
-
getExtent
int getExtent()
-
isAncestorOf
boolean isAncestorOf(IParseTree l)
-
contains
boolean contains(int iPosition)
-
contains
boolean contains(IParseTree l)
-
containsOrBorders
boolean containsOrBorders(int iPosition, boolean strict)
-
containsOrBorders
boolean containsOrBorders(IParseTree l, boolean strict)
-
getDeepestLocation
IParseTree getDeepestLocation(int iPosition, boolean strict)
-
getDeepestLocation
IParseTree getDeepestLocation(int iStart, int iEnd, boolean strict)
-
getDeepestLocation
IParseTree getDeepestLocation(boolean statementsOnly, int iStart, int iEnd, boolean strict)
-
getDeepestStatementLocation
IParseTree getDeepestStatementLocation(int iPosition, boolean strict)
-
getStatementAtLine
IParseTree getStatementAtLine(int iLineNum, Class clsSkip)
-
addChild
void addChild(IParseTree l)
-
removeChild
void removeChild(IParseTree l)
-
getChildren
List<IParseTree> getChildren()
-
getParent
IParseTree getParent()
-
getParentOtherThanThis
IParseTree getParentOtherThanThis()
-
setParent
void setParent(IParseTree parent)
-
areOffsetAndExtentEqual
boolean areOffsetAndExtentEqual(IParseTree location)
-
getTextFromTokens
String getTextFromTokens()
-
clearParseTreeInformation
void clearParseTreeInformation()
-
areAllChildrenAfterPosition
boolean areAllChildrenAfterPosition(int caret)
-
getDominatingLocationList
List<IParseTree> getDominatingLocationList()
-
isSiblingOf
boolean isSiblingOf(IParseTree deepestAtEnd)
-
getChildAfter
IParseTree getChildAfter(int point)
-
getChildBefore
IParseTree getChildBefore(int point)
-
getChildBefore
IParseTree getChildBefore(IParseTree child)
-
getChildAfter
IParseTree getChildAfter(IParseTree child)
-
getChildrenBefore
List<IParseTree> getChildrenBefore(IParseTree parseTree)
-
getFirstChildWithParsedElementType
IParseTree getFirstChildWithParsedElementType(Class<? extends IParsedElement> aClass)
-
getLastChildWithParsedElementType
IParseTree getLastChildWithParsedElementType(Class<? extends IParsedElement> aClass)
-
getLastChild
IParseTree getLastChild()
-
getNextSibling
IParseTree getNextSibling()
-
getPreviousSibling
IParseTree getPreviousSibling()
-
getDeepestFirstChild
IParseTree getDeepestFirstChild()
-
findDescendantsWithParsedElementType
Collection<IParseTree> findDescendantsWithParsedElementType(Class type)
-
addUnder
void addUnder(IParseTree parent)
-
getEnclosingFunctionStatement
IFunctionStatement getEnclosingFunctionStatement()
-
getMatchingElement
IParseTree getMatchingElement(int iStart, int iLength)
-
isAncestor
boolean isAncestor(IParseTree after)
-
-