public static class IParseTree.Search extends Object
| Constructor and Description |
|---|
Search() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends IParsedElement> |
getContainedParsedElementsByType(List<IParseTree> locations,
Class<E> parsedElementClass,
List<E> listOut) |
static IParseTree |
getDeepestLocation(boolean statementsOnly,
List<IParseTree> locations,
int iStart,
int iEnd,
boolean strict) |
static IParseTree |
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 |
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 |
getDeepestLocationSpanning(List<IParseTree> locations,
int iStart,
int iEnd,
boolean strict) |
static IParseTree |
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 IStatement |
getHiddenStatement(IParsedElement pe) |
static IParseTree |
getStatementAtLine(List<IParseTree> locations,
int iLineNum,
Class clsSkip) |
static boolean |
isDeeper(IParseTree deepest,
IParseTree potentiallyDeeper) |
public static IParseTree getDeepestLocation(boolean statementsOnly, List<IParseTree> locations, int iStart, int iEnd, boolean strict)
public static boolean isDeeper(IParseTree deepest, IParseTree potentiallyDeeper)
public static IParseTree getDeepestLocation(List<IParseTree> locations, int iPosition, boolean strict)
locations - An array of locations.iPosition - A position to check for.strict - Whether to match strictly or accept white spaces to the rightpublic static IParseTree getDeepestLocation(List<IParseTree> locations, int iSegmentStart, int iSegmentEnd, boolean strict)
locations - A list of IParseTree to examineiSegmentStart - The start of the segment (inclusive)iSegmentEnd - The end of the segment (inclusive)strict - Whether to match strictly or accept white spaces to the rightpublic static IParseTree getDeepestStatementLocation(List<IParseTree> locations, int iPosition, boolean strict)
locations - A list of IParseTree to examineiPosition - The positionstrict - Whether to match strictly or accept white spaces to the rightpublic static IParseTree getStatementAtLine(List<IParseTree> locations, int iLineNum, Class clsSkip)
public static <E extends IParsedElement> void getContainedParsedElementsByType(List<IParseTree> locations, Class<E> parsedElementClass, List<E> listOut)
public static IParseTree getDeepestLocationSpanning(List<IParseTree> locations, int iStart, int iEnd, boolean strict)
public static IStatement getHiddenStatement(IParsedElement pe)
Copyright © 2019. All rights reserved.