Package gw.lang.parser
Interface IParseTree
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ParseTree
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addUnder
(IParseTree parent) boolean
areAllChildrenAfterPosition
(int caret) boolean
areOffsetAndExtentEqual
(IParseTree location) void
boolean
contains
(int iPosition) boolean
boolean
containsOrBorders
(int iPosition, boolean strict) boolean
containsOrBorders
(IParseTree l, boolean strict) getChildAfter
(int point) getChildAfter
(IParseTree child) getChildBefore
(int point) getChildBefore
(IParseTree child) getChildrenBefore
(IParseTree parseTree) int
getDeepestLocation
(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) int
getFirstChildWithParsedElementType
(Class<? extends IParsedElement> aClass) getLastChildWithParsedElementType
(Class<? extends IParsedElement> aClass) int
int
getMatchingElement
(int iStart, int iLength) int
getStatementAtLine
(int iLineNum, Class clsSkip) boolean
isAncestor
(IParseTree after) boolean
boolean
isSiblingOf
(IParseTree deepestAtEnd) void
void
setLength
(int iLength) void
setParent
(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
-