Uses of Interface
gw.lang.parser.IParseTree
-
Packages that use IParseTree Package Description editor editor.search gw.internal.gosu.parser gw.lang.parser gw.util -
-
Uses of IParseTree in editor
Methods in editor that return IParseTree Modifier and Type Method Description IParseTree
GosuEditor. getDeepestLocationAtCaret()
IParseTree
IScriptEditor. getDeepestLocationAtCaret()
IParseTree
GosuEditor. getDeepestStatementLocationAtCaret()
IParseTree
IScriptEditor. getDeepestStatementLocationAtCaret()
IParseTree
GosuEditor. getDeepestStatementLocationAtPos(int iPos)
IParseTree
GosuEditor. getDeepestStatementLocationAtPos(int iPos, boolean bStrict)
IParseTree
GosuEditor. getStatementAtLine(int iLineNum)
IParseTree
IScriptEditor. getStatementAtLine(int iLine)
IParseTree
GosuEditor. getStatementAtLineAtCaret()
IParseTree
IScriptEditor. getStatementAtLineAtCaret()
IParseTree
GosuEditor. getStatementAtLineAtCaretOrExpression()
IParseTree
IScriptEditor. getStatementAtLineAtCaretOrExpression()
IParseTree
GosuEditor. getStatementAtLineOrExpression(int iLine)
IParseTree
IScriptEditor. getStatementAtLineOrExpression(int iLine)
Methods in editor that return types with arguments of type IParseTree Modifier and Type Method Description List<IParseTree>
GosuDocument. getLocations()
Methods in editor with parameters of type IParseTree Modifier and Type Method Description static String
ContextHelpUtil. getContextHelp(IParseTree deepestParseTree)
Method parameters in editor with type arguments of type IParseTree Modifier and Type Method Description void
GosuDocument. setLocations(List<IParseTree> locations)
The parsed Locations for the document. -
Uses of IParseTree in editor.search
Methods in editor.search with parameters of type IParseTree Modifier and Type Method Description static SearchLocation
UsageSearcher. makeSearchLocation(IParseTree parseTree)
-
Uses of IParseTree in gw.internal.gosu.parser
Classes in gw.internal.gosu.parser that implement IParseTree Modifier and Type Class Description class
ParseTree
Intended to specify the location of a parsed element within the source.Methods in gw.internal.gosu.parser that return IParseTree Modifier and Type Method Description IParseTree
Token. getAfter()
IParseTree
ParseTree. getMatchingElement(int iStart, int iLength)
IParseTree
ParseTree. getParent()
IParseTree
ParseTree. getParentOtherThanThis()
Like getParent, but won't infinitely recurse if the parent turns out to be equal to this, which can happen when the expression in question is a program (since the outer program has the same location as the main statement).IParseTree
PositionToken. getPos()
Methods in gw.internal.gosu.parser that return types with arguments of type IParseTree Modifier and Type Method Description Collection<IParseTree>
ParseTree. findDescendantsWithParsedElementType(Class type)
List<IParseTree>
ParseTree. getChildren()
List<IParseTree>
ParseTree. getChildrenBefore(IParseTree parseTree)
List<IParseTree>
ParseTree. getChildrenSorted()
List<IParseTree>
ParseTree. getDominatingLocationList()
List<IParseTree>
GosuParser. getLocations()
Methods in gw.internal.gosu.parser with parameters of type IParseTree Modifier and Type Method Description void
ParseTree. addChild(int iIndex, IParseTree l)
void
ParseTree. addChild(IParseTree l)
Adds a child location to this location.protected void
ParsedElement. addToken(IToken token, IParseTree after)
void
ParseTree. addUnder(IParseTree parent)
boolean
ParseTree. areOffsetAndExtentEqual(IParseTree location)
Is just the physical location equal?boolean
ParseTree. contains(IParseTree l)
boolean
ParseTree. containsOrBorders(IParseTree l, boolean strict)
ParseTree
ParseTree. getChildAfter(IParseTree child)
ParseTree
ParseTree. getChildBefore(IParseTree child)
List<IParseTree>
ParseTree. getChildrenBefore(IParseTree parseTree)
boolean
ParseTree. isAncestor(IParseTree child)
boolean
ParseTree. isAncestorOf(IParseTree l)
boolean
ParseTree. isSiblingOf(IParseTree deepestAtEnd)
IParseResult
GosuProgramParser. parseRuntimeExpr(String typeName, String strSource, IType enclosingClass, ISymbolTable extSyms, IParseTree ctxElem)
void
ParseTree. removeChild(IParseTree l)
void
Token. setAfter(IParseTree after)
void
ParsedElement. setLocation(IParseTree location)
Specifiy the location of this parsed element within the source.void
ParseTree. setParent(IParseTree l)
Sets the parent location.Method parameters in gw.internal.gosu.parser with type arguments of type IParseTree Modifier and Type Method Description void
ParserBase. setSubTree(List<IParseTree> subTree)
Constructors in gw.internal.gosu.parser with parameters of type IParseTree Constructor Description PositionToken(IParseTree pos, int iStartOffset, int iEndOffset)
-
Uses of IParseTree in gw.lang.parser
Methods in gw.lang.parser that return IParseTree Modifier and Type Method Description abstract IParseTree
IToken. getAfter()
IParseTree
IParseTree. getChildAfter(int point)
IParseTree
IParseTree. getChildAfter(IParseTree child)
IParseTree
IParseTree. getChildBefore(int point)
IParseTree
IParseTree. getChildBefore(IParseTree child)
IParseTree
IParseTree. getDeepestFirstChild()
IParseTree
IParseTree. getDeepestLocation(boolean statementsOnly, int iStart, int iEnd, boolean strict)
IParseTree
IParseTree. getDeepestLocation(int iPosition, boolean strict)
IParseTree
IParseTree. getDeepestLocation(int iStart, int iEnd, boolean strict)
static IParseTree
IParseTree.Search. getDeepestLocation(boolean statementsOnly, List<IParseTree> locations, int iStart, int iEnd, boolean strict)
static IParseTree
IParseTree.Search. getDeepestLocation(List<IParseTree> locations, int iPosition, boolean strict)
A convenience method to find the deepest location for a specified position given an array of locations (typically obtained via IGosuParser.getLocations())static IParseTree
IParseTree.Search. getDeepestLocation(List<IParseTree> locations, int iSegmentStart, int iSegmentEnd, boolean strict)
A convenience method to find the deepest location for a specified segment given an array of locations (typically obtained via IGosuParser.getLocatoins())static IParseTree
IParseTree.Search. getDeepestLocationSpanning(List<IParseTree> locations, int iStart, int iEnd, boolean strict)
IParseTree
IParseTree. getDeepestStatementLocation(int iPosition, boolean strict)
static IParseTree
IParseTree.Search. getDeepestStatementLocation(List<IParseTree> locations, int iPosition, boolean strict)
A convenience method to find the deepest location for a specified position given an array of locations (typically obtained via IGosuParser.getLocatoins())IParseTree
IParseTree. getFirstChildWithParsedElementType(Class<? extends IParsedElement> aClass)
IParseTree
IParseTree. getLastChild()
IParseTree
IParseTree. getLastChildWithParsedElementType(Class<? extends IParsedElement> aClass)
IParseTree
IParsedElement. getLocation()
IParseTree
IParseTree. getMatchingElement(int iStart, int iLength)
IParseTree
IParseTree. getNextSibling()
IParseTree
IParseTree. getParent()
IParseTree
IParseTree. getParentOtherThanThis()
IParseTree
IParseTree. getPreviousSibling()
IParseTree
IParseTree. getStatementAtLine(int iLineNum, Class clsSkip)
static IParseTree
IParseTree.Search. getStatementAtLine(List<IParseTree> locations, int iLineNum, Class clsSkip)
Methods in gw.lang.parser that return types with arguments of type IParseTree Modifier and Type Method Description Collection<IParseTree>
IParseTree. findDescendantsWithParsedElementType(Class type)
List<IParseTree>
IParseTree. getChildren()
List<IParseTree>
IParseTree. getChildrenBefore(IParseTree parseTree)
List<IParseTree>
IParseTree. getDominatingLocationList()
List<IParseTree>
IGosuParser. getLocations()
Methods in gw.lang.parser with parameters of type IParseTree Modifier and Type Method Description void
IParseTree. addChild(IParseTree l)
void
IParseTree. addUnder(IParseTree parent)
boolean
IParseTree. areOffsetAndExtentEqual(IParseTree location)
boolean
IParseTree. contains(IParseTree l)
boolean
IParseTree. containsOrBorders(IParseTree l, boolean strict)
IParseTree
IParseTree. getChildAfter(IParseTree child)
IParseTree
IParseTree. getChildBefore(IParseTree child)
List<IParseTree>
IParseTree. getChildrenBefore(IParseTree parseTree)
boolean
IParseTree. isAncestor(IParseTree after)
boolean
IParseTree. isAncestorOf(IParseTree l)
static boolean
IParseTree.Search. isDeeper(IParseTree deepest, IParseTree potentiallyDeeper)
boolean
IParseTree. isSiblingOf(IParseTree deepestAtEnd)
IParseResult
IGosuProgramParser. parseRuntimeExpr(String typeName, String strSource, IType enclosingClass, ISymbolTable extSyms, IParseTree ctxElem)
void
IParseTree. removeChild(IParseTree l)
abstract void
IToken. setAfter(IParseTree after)
void
IParsedElement. setLocation(IParseTree location)
void
IParseTree. setParent(IParseTree parent)
Method parameters in gw.lang.parser with type arguments of type IParseTree Modifier and Type Method Description static <E extends IParsedElement>
voidIParseTree.Search. getContainedParsedElementsByType(List<IParseTree> locations, Class<E> parsedElementClass, List<E> listOut)
static IParseTree
IParseTree.Search. getDeepestLocation(boolean statementsOnly, List<IParseTree> locations, int iStart, int iEnd, boolean strict)
static IParseTree
IParseTree.Search. getDeepestLocation(List<IParseTree> locations, int iPosition, boolean strict)
A convenience method to find the deepest location for a specified position given an array of locations (typically obtained via IGosuParser.getLocations())static IParseTree
IParseTree.Search. getDeepestLocation(List<IParseTree> locations, int iSegmentStart, int iSegmentEnd, boolean strict)
A convenience method to find the deepest location for a specified segment given an array of locations (typically obtained via IGosuParser.getLocatoins())static IParseTree
IParseTree.Search. getDeepestLocationSpanning(List<IParseTree> locations, int iStart, int iEnd, boolean strict)
static IParseTree
IParseTree.Search. getDeepestStatementLocation(List<IParseTree> locations, int iPosition, boolean strict)
A convenience method to find the deepest location for a specified position given an array of locations (typically obtained via IGosuParser.getLocatoins())static IParseTree
IParseTree.Search. getStatementAtLine(List<IParseTree> locations, int iLineNum, Class clsSkip)
-
Uses of IParseTree in gw.util
Methods in gw.util that return IParseTree Modifier and Type Method Description static IParseTree
GosuRefactorUtil. findFirstStatementAtLine(int line, int position, List<IParseTree> locations)
static IParseTree
GosuRefactorUtil. findLastStatementAtLine(int line, int position, List<IParseTree> locations)
static IParseTree[]
GosuRefactorUtil. findSpanningLogicalRange(IParseTree start, IParseTree end)
Given two parse tree positions, find the bounding pair that captures the start and end in one logical unitMethods in gw.util with parameters of type IParseTree Modifier and Type Method Description static GosuRefactorUtil.MoveInstruction
GosuRefactorUtil. findElementToMoveToAfter(IParseTree child)
static IParseTree[]
GosuRefactorUtil. findSpanningLogicalRange(IParseTree start, IParseTree end)
Given two parse tree positions, find the bounding pair that captures the start and end in one logical unitstatic GosuRefactorUtil.MoveInstruction
GosuRefactorUtil. getMoveDownInstruction(IParseTree elementToMoveAfter)
static GosuRefactorUtil.MoveInstruction
GosuRefactorUtil. getMoveUpInstruction(IParseTree elementToMoveBefore)
static boolean
GosuRefactorUtil. isClassElement(IParseTree parseTree)
Method parameters in gw.util with type arguments of type IParseTree Modifier and Type Method Description static IParsedElement
GosuRefactorUtil. boundingParent(List<IParseTree> locations, int position, Class<? extends IParsedElement>... possibleTypes)
Finds a bounding parent of any of the possible types passed in from the list of locations, starting at the position given.static IParseTree
GosuRefactorUtil. findFirstStatementAtLine(int line, int position, List<IParseTree> locations)
static IParseTree
GosuRefactorUtil. findLastStatementAtLine(int line, int position, List<IParseTree> locations)
-