Uses of Interface
gw.lang.parser.IParseTree
Packages that use IParseTree
-
Uses of IParseTree in editor
Fields in editor declared as IParseTreeModifier and TypeFieldDescriptionprivate IParseTreeSmartFixManager._stringLiteralLocationToReplaceFields in editor with type parameters of type IParseTreeMethods in editor that return IParseTreeModifier and TypeMethodDescription(package private) IParseTreeGosuEditor.getDeepestLocation(int iPos, boolean strict) (package private) IParseTreeGosuEditor.getDeepestLocation(Point pt) GosuEditor.getDeepestLocationAtCaret()IScriptEditor.getDeepestLocationAtCaret()(package private) IParseTreeGosuEditor.getDeepestLocationSpanning(int start, int end) GosuEditor.getDeepestStatementLocationAtCaret()IScriptEditor.getDeepestStatementLocationAtCaret()GosuEditor.getDeepestStatementLocationAtPos(int iPos) GosuEditor.getDeepestStatementLocationAtPos(int iPos, boolean bStrict) GosuEditor.getStatementAtLine(int iLineNum) IScriptEditor.getStatementAtLine(int iLine) GosuEditor.getStatementAtLineAtCaret()IScriptEditor.getStatementAtLineAtCaret()GosuEditor.getStatementAtLineAtCaretOrExpression()IScriptEditor.getStatementAtLineAtCaretOrExpression()GosuEditor.getStatementAtLineOrExpression(int iLine) IScriptEditor.getStatementAtLineOrExpression(int iLine) private IParseTreeGosuEditor.returnStatementOrExpression(IParseTree statement) Methods in editor that return types with arguments of type IParseTreeMethods in editor with parameters of type IParseTreeModifier and TypeMethodDescription(package private) voidGosuEditor.displayJavadocHelp(IParseTree parseTree) private PointDynamicSelectionManager.findNewLineWithinStatementList(IParseTree spanningLocation) static StringContextHelpUtil.getContextHelp(IParseTree deepestParseTree) (package private) StringGosuEditor.getContextHelp(IParseTree parseTree) private PointDynamicSelectionManager.makePoint(IParseTree spanningLocation) (package private) voidGosuEditor.replaceLocation(IParseTree location, String strReplacement) private IParseTreeGosuEditor.returnStatementOrExpression(IParseTree statement) Method parameters in editor with type arguments of type IParseTreeModifier and TypeMethodDescriptionvoidGosuDocument.setLocations(List<IParseTree> locations) The parsed Locations for the document. -
Uses of IParseTree in editor.search
Methods in editor.search with parameters of type IParseTreeModifier and TypeMethodDescriptionstatic SearchLocationUsageSearcher.makeSearchLocation(IParseTree parseTree) private SearchLocationUsageSearcher.makeZeroLengthSearchLocation(IParseTree parseTree) -
Uses of IParseTree in gw.internal.gosu.parser
Classes in gw.internal.gosu.parser that implement IParseTreeModifier and TypeClassDescriptionfinal classIntended to specify the location of a parsed element within the source.Fields in gw.internal.gosu.parser declared as IParseTreeModifier and TypeFieldDescription(package private) IParseTreeToken._afterprivate IParseTreePositionToken._posFields in gw.internal.gosu.parser with type parameters of type IParseTreeModifier and TypeFieldDescriptionprivate List<IParseTree>ParserBase._subTreeprivate static final List<IParseTree>ParsedElement.EMPTY_PARSETREE_LISTMethods in gw.internal.gosu.parser that return IParseTreeModifier and TypeMethodDescriptionToken.getAfter()final IParseTreeParseTree.getMatchingElement(int iStart, int iLength) ParseTree.getParent()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).PositionToken.getPos()Methods in gw.internal.gosu.parser that return types with arguments of type IParseTreeModifier and TypeMethodDescriptionParseTree.findDescendantsWithParsedElementType(Class type) ParseTree.getChildren()ParseTree.getChildrenBefore(IParseTree parseTree) ParseTree.getChildrenSorted()ParseTree.getDominatingLocationList()GosuParser.getLocations()Methods in gw.internal.gosu.parser with parameters of type IParseTreeModifier and TypeMethodDescriptionvoidParseTree.addChild(int iIndex, IParseTree l) voidParseTree.addChild(IParseTree l) Adds a child location to this location.protected voidParsedElement.addToken(IToken token, IParseTree after) voidParseTree.addUnder(IParseTree parent) booleanParseTree.areOffsetAndExtentEqual(IParseTree location) Is just the physical location equal?booleanParseTree.contains(IParseTree l) booleanParseTree.containsOrBorders(IParseTree l, boolean strict) ParseTree.getChildAfter(IParseTree child) ParseTree.getChildBefore(IParseTree child) ParseTree.getChildrenBefore(IParseTree parseTree) booleanParseTree.isAncestor(IParseTree child) booleanParseTree.isAncestorOf(IParseTree l) private booleanParsedElement.isDescendent(IParseTree after) booleanParseTree.isSiblingOf(IParseTree deepestAtEnd) GosuProgramParser.parseRuntimeExpr(String typeName, String strSource, IType enclosingClass, ISymbolTable extSyms, IParseTree ctxElem) voidParseTree.removeChild(IParseTree l) voidToken.setAfter(IParseTree after) voidParsedElement.setLocation(IParseTree location) Specifiy the location of this parsed element within the source.voidParseTree.setParent(IParseTree l) Sets the parent location.Method parameters in gw.internal.gosu.parser with type arguments of type IParseTreeModifier and TypeMethodDescriptionprivate voidParseTree.findDescendantsWithParsedElementType(ArrayList<IParseTree> matches, Class type) voidParserBase.setSubTree(List<IParseTree> subTree) Constructors in gw.internal.gosu.parser with parameters of type IParseTree -
Uses of IParseTree in gw.lang.parser
Methods in gw.lang.parser that return IParseTreeModifier and TypeMethodDescriptionabstract IParseTreeIToken.getAfter()IParseTree.getChildAfter(int point) IParseTree.getChildAfter(IParseTree child) IParseTree.getChildBefore(int point) IParseTree.getChildBefore(IParseTree child) IParseTree.getDeepestFirstChild()IParseTree.getDeepestLocation(boolean statementsOnly, int iStart, int iEnd, boolean strict) IParseTree.getDeepestLocation(int iPosition, boolean strict) IParseTree.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) IParseTree.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())IParseTree.getFirstChildWithParsedElementType(Class<? extends IParsedElement> aClass) IParseTree.getLastChild()IParseTree.getLastChildWithParsedElementType(Class<? extends IParsedElement> aClass) IParsedElement.getLocation()IParseTree.getMatchingElement(int iStart, int iLength) IParseTree.getNextSibling()IParseTree.getParent()IParseTree.getParentOtherThanThis()IParseTree.getPreviousSibling()IParseTree.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 IParseTreeModifier and TypeMethodDescriptionIParseTree.findDescendantsWithParsedElementType(Class type) IParseTree.getChildren()IParseTree.getChildrenBefore(IParseTree parseTree) IParseTree.getDominatingLocationList()IGosuParser.getLocations()Methods in gw.lang.parser with parameters of type IParseTreeModifier and TypeMethodDescriptionvoidIParseTree.addChild(IParseTree l) voidIParseTree.addUnder(IParseTree parent) booleanIParseTree.areOffsetAndExtentEqual(IParseTree location) booleanIParseTree.contains(IParseTree l) booleanIParseTree.containsOrBorders(IParseTree l, boolean strict) IParseTree.getChildAfter(IParseTree child) IParseTree.getChildBefore(IParseTree child) IParseTree.getChildrenBefore(IParseTree parseTree) booleanIParseTree.isAncestor(IParseTree after) booleanIParseTree.isAncestorOf(IParseTree l) static booleanIParseTree.Search.isDeeper(IParseTree deepest, IParseTree potentiallyDeeper) booleanIParseTree.isSiblingOf(IParseTree deepestAtEnd) IGosuProgramParser.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 IParseTreeModifier and TypeMethodDescriptionstatic <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 IParseTreeModifier and TypeMethodDescriptionstatic 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 unitprivate static IParseTreeGosuRefactorUtil.findStatementAtLine(List<IParseTree> locations, int position, int line, boolean earliest) Methods in gw.util with parameters of type IParseTreeModifier and TypeMethodDescriptionGosuRefactorUtil.findElementToMoveToAfter(IParseTree child) private static GosuRefactorUtil.MoveInstructionGosuRefactorUtil.findElementToMoveToBefore(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 unitGosuRefactorUtil.getMoveDownInstruction(IParseTree elementToMoveAfter) GosuRefactorUtil.getMoveUpInstruction(IParseTree elementToMoveBefore) static booleanGosuRefactorUtil.isClassElement(IParseTree parseTree) Method parameters in gw.util with type arguments of type IParseTreeModifier and TypeMethodDescriptionstatic 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) private static IParseTreeGosuRefactorUtil.findStatementAtLine(List<IParseTree> locations, int position, int line, boolean earliest)