Package gw.lang.parser
Interface IParseTree
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ParseTree
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddUnder(IParseTree parent) booleanareAllChildrenAfterPosition(int caret) booleanareOffsetAndExtentEqual(IParseTree location) voidbooleancontains(int iPosition) booleanbooleancontainsOrBorders(int iPosition, boolean strict) booleancontainsOrBorders(IParseTree l, boolean strict) getChildAfter(int point) getChildAfter(IParseTree child) getChildBefore(int point) getChildBefore(IParseTree child) getChildrenBefore(IParseTree parseTree) intgetDeepestLocation(boolean statementsOnly, int iStart, int iEnd, boolean strict) getDeepestLocation(int iPosition, boolean strict) getDeepestLocation(int iStart, int iEnd, boolean strict) getDeepestStatementLocation(int iPosition, boolean strict) intgetFirstChildWithParsedElementType(Class<? extends IParsedElement> aClass) getLastChildWithParsedElementType(Class<? extends IParsedElement> aClass) intintgetMatchingElement(int iStart, int iLength) intgetStatementAtLine(int iLineNum, Class clsSkip) booleanisAncestor(IParseTree after) booleanbooleanisSiblingOf(IParseTree deepestAtEnd) voidvoidsetLength(int iLength) voidsetParent(IParseTree parent) toString()
-
Method Details
-
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
-
contains
boolean contains(int iPosition) -
contains
-
containsOrBorders
boolean containsOrBorders(int iPosition, boolean strict) -
containsOrBorders
-
getDeepestLocation
-
getDeepestLocation
-
getDeepestLocation
-
getDeepestStatementLocation
-
getStatementAtLine
-
addChild
-
removeChild
-
getChildren
List<IParseTree> getChildren() -
getParent
IParseTree getParent() -
getParentOtherThanThis
IParseTree getParentOtherThanThis() -
setParent
-
areOffsetAndExtentEqual
-
toString
String toString() -
getTextFromTokens
String getTextFromTokens() -
clearParseTreeInformation
void clearParseTreeInformation() -
areAllChildrenAfterPosition
boolean areAllChildrenAfterPosition(int caret) -
getDominatingLocationList
List<IParseTree> getDominatingLocationList() -
isSiblingOf
-
getChildAfter
-
getChildBefore
-
getChildBefore
-
getChildAfter
-
getChildrenBefore
-
getFirstChildWithParsedElementType
-
getLastChildWithParsedElementType
-
getLastChild
IParseTree getLastChild() -
getNextSibling
IParseTree getNextSibling() -
getPreviousSibling
IParseTree getPreviousSibling() -
getDeepestFirstChild
IParseTree getDeepestFirstChild() -
findDescendantsWithParsedElementType
-
addUnder
-
getEnclosingFunctionStatement
IFunctionStatement getEnclosingFunctionStatement() -
getMatchingElement
-
isAncestor
-