|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgudusoft.gsqlparser.pp.utils.SourceTokenSearcher
public class SourceTokenSearcher
| Constructor Summary | |
|---|---|
SourceTokenSearcher()
|
|
| Method Summary | |
|---|---|
static TSourceToken |
backforwardSearch(TSourceToken token,
int backsearchSize,
java.lang.String text)
backward search the source token |
static TSourceToken |
firstNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
int endPos)
get first token which is not whitespace and return token |
static TSourceToken |
firstSelectNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
java.lang.String text)
forward search the token which is the first not whitespace or return token, and its value is a fixed text |
static TSourceToken |
forwardSearch(TSourceToken token,
int forwardSearchSize,
java.lang.String text)
forward search the source token |
static int |
indexOf(TSourceTokenList list,
int startPos,
int endPos,
ETokenType type)
search the source token in the source token list from the top |
static int |
indexOf(TSourceTokenList list,
int startPos,
int endPos,
java.lang.String text)
search the source token in the source token list from the top |
static int |
indexOf(TSourceTokenList list,
int startPos,
java.lang.String text)
search the source token in the source token list from the top |
static boolean |
isNewLineToken(TSourceToken token)
|
static boolean |
isSimpleComment(TSourceToken token)
|
static int |
lastIndexOf(TSourceTokenList list,
int startPos,
int endPos,
java.lang.String text)
search the source token in the source token list from the end |
static int |
lastIndexOf(TSourceTokenList list,
int endPos,
java.lang.String text)
search the source token in the source token list from the end |
static TSourceToken |
lastNotWhitespaceAndReturnToken(TSourceTokenList list,
int endPos)
get last token which is not whitespace and return token |
static TSourceToken |
lastNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
int endPos)
get last token which is not whitespace and return token |
static TSourceToken |
lastSelectedNotWhitespaceAndReturnToken(TSourceTokenList list,
int endPos,
java.lang.String text)
backward search the token which is the first not whitespace or return token, and its value is a fixed text |
static TSourceToken |
lastSelectedNotWhitespaceAndReturnToken(TSourceToken token,
java.lang.String text)
backward search the token which is the first not whitespace or return token, and its value is a fixed text |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceTokenSearcher()
| Method Detail |
|---|
public static int indexOf(TSourceTokenList list,
int startPos,
int endPos,
java.lang.String text)
list - startPos - endPos - text -
public static int indexOf(TSourceTokenList list,
int startPos,
int endPos,
ETokenType type)
list - startPos - endPos - type -
public static int indexOf(TSourceTokenList list,
int startPos,
java.lang.String text)
list - startPos - text -
public static TSourceToken backforwardSearch(TSourceToken token,
int backsearchSize,
java.lang.String text)
list - startPos - backsearchSize - text -
public static TSourceToken forwardSearch(TSourceToken token,
int forwardSearchSize,
java.lang.String text)
token - forwardSearchSize - text -
public static int lastIndexOf(TSourceTokenList list,
int startPos,
int endPos,
java.lang.String text)
list - startPos - endPos - text -
public static int lastIndexOf(TSourceTokenList list,
int endPos,
java.lang.String text)
list - endPos - text -
public static TSourceToken lastNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
int endPos)
list - startPos - endPos -
public static TSourceToken lastNotWhitespaceAndReturnToken(TSourceTokenList list,
int endPos)
list - endPos -
public static TSourceToken lastSelectedNotWhitespaceAndReturnToken(TSourceTokenList list,
int endPos,
java.lang.String text)
list - endPos - value - the fixed value
public static TSourceToken firstNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
int endPos)
list - startPos - endPos -
public static TSourceToken firstSelectNotWhitespaceAndReturnToken(TSourceTokenList list,
int startPos,
java.lang.String text)
list - startPos - text -
public static TSourceToken lastSelectedNotWhitespaceAndReturnToken(TSourceToken token,
java.lang.String text)
token - text -
public static boolean isNewLineToken(TSourceToken token)
public static boolean isSimpleComment(TSourceToken token)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||