|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.lpex.core.LpexCommonParser
com.ibm.lpex.sql.SqlParser
Document parser for SQL.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SqlParser(LpexView lpexView)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getCommentStyleCharacters()
Returns the style character used for styling comments ("c"). |
String |
getLanguage()
Returns "SQL", the language supported by this parser. |
ResourceBundle |
getProfile()
Returns the parser's properties profile resource bundle. |
boolean |
isTokenDelimiter(char ch)
Returns true if the specified character is a token delimiter. |
void |
parseAll()
Total parse of the entire document. |
void |
parseElement(int element)
Incremental parse. |
void |
setStyleAttributes()
Defines parser's style attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SqlParser(LpexView lpexView)
lpexView - the LPEX document view associated with this parser| Method Detail |
public void parseAll()
parseAll in class LpexCommonParserpublic void parseElement(int element)
parseElement in class LpexCommonParserelement - the (first) element whose committed change triggered the
parse, or the element that precedes/follows a deleted block.
The parser may identify other neighbouring elements that
will have to be reparsed as a unitLpexView.parsePending(int),
LpexView.elementParsed(int),
Total and incremental parsepublic ResourceBundle getProfile()
getProfile in class LpexCommonParserLpexCommonParser.getProperty(java.lang.String),
Parser propertiespublic String getLanguage()
"SQL", the language supported by this parser.
getLanguage in class LpexCommonParserLpexCommonParser.LANGUAGE_SQLpublic void setStyleAttributes()
'_' (layout blanks),
'i' (identifier),
'p' (punctuation),
'o' (operator),
'c' (comment),
'e' (error),
'k' (keyword),
'n' (constant),
'q' (string literal),
'f' (built-in function).
public String getCommentStyleCharacters()
getCommentStyleCharacters in class LpexCommonParserpublic boolean isTokenDelimiter(char ch)
true if the specified character is a token delimiter.
isTokenDelimiter in class LpexCommonParserch - character queried, for example, ')'LpexCommonParser.getToken(com.ibm.lpex.core.LpexDocumentLocation)
|
SWT LPEX v3.0.4 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||