Uses of Interface
gw.lang.parser.IParseTree
Packages that use IParseTree
-
Uses of IParseTree in editor
Fields in editor declared as IParseTreeModifier and TypeFieldDescriptionprivate IParseTree
SmartFixManager._stringLiteralLocationToReplace
Fields in editor with type parameters of type IParseTreeMethods in editor that return IParseTreeModifier and TypeMethodDescription(package private) IParseTree
GosuEditor.getDeepestLocation
(int iPos, boolean strict) (package private) IParseTree
GosuEditor.getDeepestLocation
(Point pt) GosuEditor.getDeepestLocationAtCaret()
IScriptEditor.getDeepestLocationAtCaret()
(package private) IParseTree
GosuEditor.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 IParseTree
GosuEditor.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) void
GosuEditor.displayJavadocHelp
(IParseTree parseTree) private Point
DynamicSelectionManager.findNewLineWithinStatementList
(IParseTree spanningLocation) static String
ContextHelpUtil.getContextHelp
(IParseTree deepestParseTree) (package private) String
GosuEditor.getContextHelp
(IParseTree parseTree) private Point
DynamicSelectionManager.makePoint
(IParseTree spanningLocation) (package private) void
GosuEditor.replaceLocation
(IParseTree location, String strReplacement) private IParseTree
GosuEditor.returnStatementOrExpression
(IParseTree statement) Method parameters in editor with type arguments of type IParseTreeModifier and TypeMethodDescriptionvoid
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 IParseTreeModifier and TypeMethodDescriptionstatic SearchLocation
UsageSearcher.makeSearchLocation
(IParseTree parseTree) private SearchLocation
UsageSearcher.makeZeroLengthSearchLocation
(IParseTree parseTree) -
Uses of IParseTree in gw.internal.gosu.parser
Classes in gw.internal.gosu.parser that implement IParseTreeModifier and TypeClassDescriptionfinal class
Intended to specify the location of a parsed element within the source.Fields in gw.internal.gosu.parser declared as IParseTreeModifier and TypeFieldDescription(package private) IParseTree
Token._after
private IParseTree
PositionToken._pos
Fields in gw.internal.gosu.parser with type parameters of type IParseTreeModifier and TypeFieldDescriptionprivate List<IParseTree>
ParserBase._subTree
private static final List<IParseTree>
ParsedElement.EMPTY_PARSETREE_LIST
Methods in gw.internal.gosu.parser that return IParseTreeModifier and TypeMethodDescriptionToken.getAfter()
final IParseTree
ParseTree.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 TypeMethodDescriptionvoid
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.getChildAfter
(IParseTree child) ParseTree.getChildBefore
(IParseTree child) ParseTree.getChildrenBefore
(IParseTree parseTree) boolean
ParseTree.isAncestor
(IParseTree child) boolean
ParseTree.isAncestorOf
(IParseTree l) private boolean
ParsedElement.isDescendent
(IParseTree after) boolean
ParseTree.isSiblingOf
(IParseTree deepestAtEnd) 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 IParseTreeModifier and TypeMethodDescriptionprivate void
ParseTree.findDescendantsWithParsedElementType
(ArrayList<IParseTree> matches, Class type) void
ParserBase.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 IParseTree
IToken.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 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.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.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 IParseTree
IParseTree.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 TypeMethodDescriptionvoid
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.getChildAfter
(IParseTree child) IParseTree.getChildBefore
(IParseTree child) 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) 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 IParseTreeModifier and TypeMethodDescriptionstatic <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 IParseTreeModifier and TypeMethodDescriptionstatic 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 unitprivate static IParseTree
GosuRefactorUtil.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.MoveInstruction
GosuRefactorUtil.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 boolean
GosuRefactorUtil.isClassElement
(IParseTree parseTree) Method parameters in gw.util with type arguments of type IParseTreeModifier and TypeMethodDescriptionstatic 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) private static IParseTree
GosuRefactorUtil.findStatementAtLine
(List<IParseTree> locations, int position, int line, boolean earliest)