| Package | Description |
|---|---|
| gw.lang.parser | |
| gw.util |
| Modifier and Type | Method and 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) |
static IParseTree |
IParseTree.Search.getDeepestLocation(boolean statementsOnly,
List<IParseTree> locations,
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(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) |
| Modifier and Type | Method and 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() |
| Modifier and Type | Method and 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) |
| Modifier and Type | Method and Description |
|---|---|
static <E extends IParsedElement> |
IParseTree.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) |
| Modifier and Type | Method and 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 unit
|
| Modifier and Type | Method and 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 unit
|
static GosuRefactorUtil.MoveInstruction |
GosuRefactorUtil.getMoveDownInstruction(IParseTree elementToMoveAfter) |
static GosuRefactorUtil.MoveInstruction |
GosuRefactorUtil.getMoveUpInstruction(IParseTree elementToMoveBefore) |
static boolean |
GosuRefactorUtil.isClassElement(IParseTree parseTree) |
| Modifier and Type | Method and 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) |
Copyright © 2021. All rights reserved.