Uses of Interface
gw.lang.parser.IParseTree
-
Packages that use IParseTree Package Description gw.lang.parser gw.util -
-
Uses of IParseTree in gw.lang.parser
Methods in gw.lang.parser that return IParseTree Modifier and Type Method Description abstract IParseTreeIToken. getAfter()IParseTreeIParseTree. getChildAfter(int point)IParseTreeIParseTree. getChildAfter(IParseTree child)IParseTreeIParseTree. getChildBefore(int point)IParseTreeIParseTree. getChildBefore(IParseTree child)IParseTreeIParseTree. getDeepestFirstChild()IParseTreeIParseTree. getDeepestLocation(boolean statementsOnly, int iStart, int iEnd, boolean strict)IParseTreeIParseTree. getDeepestLocation(int iPosition, boolean strict)IParseTreeIParseTree. getDeepestLocation(int iStart, int iEnd, boolean strict)static IParseTreeIParseTree.Search. getDeepestLocation(boolean statementsOnly, List<IParseTree> locations, int iStart, int iEnd, boolean strict)static IParseTreeIParseTree.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 IParseTreeIParseTree.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 IParseTreeIParseTree.Search. getDeepestLocationSpanning(List<IParseTree> locations, int iStart, int iEnd, boolean strict)IParseTreeIParseTree. getDeepestStatementLocation(int iPosition, boolean strict)static IParseTreeIParseTree.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())IParseTreeIParseTree. getFirstChildWithParsedElementType(Class<? extends IParsedElement> aClass)IParseTreeIParseTree. getLastChild()IParseTreeIParseTree. getLastChildWithParsedElementType(Class<? extends IParsedElement> aClass)IParseTreeIParsedElement. getLocation()IParseTreeIParseTree. getMatchingElement(int iStart, int iLength)IParseTreeIParseTree. getNextSibling()IParseTreeIParseTree. getParent()IParseTreeIParseTree. getParentOtherThanThis()IParseTreeIParseTree. getPreviousSibling()IParseTreeIParseTree. getStatementAtLine(int iLineNum, Class clsSkip)static IParseTreeIParseTree.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 voidIParseTree. addChild(IParseTree l)voidIParseTree. addUnder(IParseTree parent)booleanIParseTree. areOffsetAndExtentEqual(IParseTree location)booleanIParseTree. contains(IParseTree l)booleanIParseTree. containsOrBorders(IParseTree l, boolean strict)IParseTreeIParseTree. getChildAfter(IParseTree child)IParseTreeIParseTree. getChildBefore(IParseTree child)List<IParseTree>IParseTree. getChildrenBefore(IParseTree parseTree)booleanIParseTree. isAncestor(IParseTree after)booleanIParseTree. isAncestorOf(IParseTree l)static booleanIParseTree.Search. isDeeper(IParseTree deepest, IParseTree potentiallyDeeper)booleanIParseTree. isSiblingOf(IParseTree deepestAtEnd)IParseResultIGosuProgramParser. parseRuntimeExpr(String typeName, String strSource, IType enclosingClass, ISymbolTable extSyms, IParseTree ctxElem)voidIParseTree. removeChild(IParseTree l)abstract voidIToken. setAfter(IParseTree after)voidIParsedElement. setLocation(IParseTree location)voidIParseTree. 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 IParseTreeIParseTree.Search. getDeepestLocation(boolean statementsOnly, List<IParseTree> locations, int iStart, int iEnd, boolean strict)static IParseTreeIParseTree.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 IParseTreeIParseTree.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 IParseTreeIParseTree.Search. getDeepestLocationSpanning(List<IParseTree> locations, int iStart, int iEnd, boolean strict)static IParseTreeIParseTree.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 IParseTreeIParseTree.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 IParseTreeGosuRefactorUtil. findFirstStatementAtLine(int line, int position, List<IParseTree> locations)static IParseTreeGosuRefactorUtil. 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.MoveInstructionGosuRefactorUtil. 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.MoveInstructionGosuRefactorUtil. getMoveDownInstruction(IParseTree elementToMoveAfter)static GosuRefactorUtil.MoveInstructionGosuRefactorUtil. getMoveUpInstruction(IParseTree elementToMoveBefore)static booleanGosuRefactorUtil. isClassElement(IParseTree parseTree)Method parameters in gw.util with type arguments of type IParseTree Modifier and Type Method Description static IParsedElementGosuRefactorUtil. 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 IParseTreeGosuRefactorUtil. findFirstStatementAtLine(int line, int position, List<IParseTree> locations)static IParseTreeGosuRefactorUtil. findLastStatementAtLine(int line, int position, List<IParseTree> locations)
-