|
LPEX 4.2.3 |
|||||||||
| 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
public class SqlParser
Document parser for SQL.
Editor action added by this document parser:
Editor action modified by this document parser:
Parser property handled directly by this parser:
TODO).
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SqlParser(LpexView lpexView)
Constructor. |
|
| Method Summary | |
|---|---|
protected SqlLexer |
createSqlLexer(LpexCharStream charStream,
String hostLanguage,
SqlLexerStyles styles,
SqlLexerClasses classes)
Creates the SqlLexer to be used by this parser. |
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("c$"). |
String |
getLanguage()
Returns "SQL", the language supported by this parser. |
protected String |
getPopupItems(int popupLocation)
Returns parser's contribution to the popup. |
ResourceBundle |
getProfile()
Returns this parser's profile resource bundle. |
protected void |
initParser()
Initializes the parser. |
boolean |
isTokenDelimiter(char ch)
Returns whether the specified character is a token delimiter. |
void |
parseAll()
Total parse of the entire document. |
void |
parseElement(int element)
Incremental parse. |
protected void |
propertySet(String key)
Listens to changes to the taskTags parser property in this view. |
void |
setStyleAttributes()
Defines this 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 |
|---|
protected void initParser()
initParser in class LpexCommonParser
protected SqlLexer createSqlLexer(LpexCharStream charStream,
String hostLanguage,
SqlLexerStyles styles,
SqlLexerClasses classes)
public void parseAll()
parseAll in class LpexCommonParserpublic void parseElement(int element)
parseElement in class LpexCommonParserelement - an element affected by a committed change in this viewLpexView.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_SQLprotected void propertySet(String key)
propertySet in class LpexCommonParserkey - base name of the parser property that was set, for example "autoIndent"LpexCommonParser.setProperty(String,String),
LpexCommonParser.getProperty(java.lang.String),
Parser propertiesprotected String getPopupItems(int popupLocation)
getPopupItems in class LpexCommonParserpopupLocation - the location on the pop-up menu of the items
requested, one of: LpexCommonParser.POPUP_TOP, LpexCommonParser.POPUP_FILTERVIEW,
LpexCommonParser.POPUP_SOURCE, LpexCommonParser.POPUP_END
null if noneLpexCommonParser.defineFilterAction(java.lang.String, java.lang.String)public void setStyleAttributes()
'_' (layout blanks),
'i' (identifier),
'p' (punctuation),
'o' (operator),
'c' (comment),
'$' (comment task tag),
'e' (error),
'k' (keyword),
'n' (constant),
'q' (string literal),
'f' (built-in function).
public String getCommentStyleCharacters()
getCommentStyleCharacters in class LpexCommonParserpublic boolean isTokenDelimiter(char ch)
isTokenDelimiter in class LpexCommonParserch - character queried, for example ')'LpexCommonParser.getToken(com.ibm.lpex.core.LpexDocumentLocation),
LpexCommonParser.tokenBegin(com.ibm.lpex.core.LpexDocumentLocation),
LpexCommonParser.tokenEnd(com.ibm.lpex.core.LpexDocumentLocation)
|
LPEX 4.2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||