|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.core.LpexCommonParser com.ibm.lpex.java.JavaParser com.ibm.lpex.java.JavaSqlParser
public class JavaSqlParser
Document parser for Java with embedded SQL.
Action added by this parser: sql for a selective view of the embedded SQL statements.
Field Summary |
---|
Constructor Summary | |
---|---|
JavaSqlParser(LpexView lpexView)
Constructor. |
Method Summary | |
---|---|
protected String |
getPopupItems(int popupLocation)
Extended to return this parser's contribution to the popup. |
String |
getProperty(String key)
Extended to return "sample.sql" rather than "sample" for the preview window of the styles preference page. |
protected SqlLexer |
getSqlLexer(LpexCharStream stream)
Returns the SqlLexer. |
protected void |
initParser()
Extended to define the Filter view submenu editor action sql. |
protected void |
setStyleAttributes()
Extended to define SQL-specific additional style attributes. |
Methods inherited from class com.ibm.lpex.java.JavaParser |
---|
addErrorMessage, delete, document, expandProtoKeyword, getCommentStyleCharacters, getLanguage, getLanguage, getPopupItem, getProfile, isTokenDelimiter, isWordCharacter, join, openLine, parseAll, parseElement, propertySet, setLexer, split, splitLine, trace |
Methods inherited from class com.ibm.lpex.core.LpexCommonParser |
---|
addDocumentMessage, addMessage, addMessage, addMessage, blockMarkWord, copyDocumentMessages, cursorIndent, defineFilterAction, defineFilterAction, getInstallStyleAttributes, getLshToken, getStyleName, getStyles, getTextIndent, getToken, getTokenLocation, indentText, indentText, indentText, isDebuggable, isPrimaryParser, lineComment, lpexView, matchToken, newLine, parse, removeDocumentMessages, removeMessages, removeMessages, resetParser, setProperty, setStyle, styleString, terminateParser, tokenBegin, tokenEnd, totalParse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaSqlParser(LpexView lpexView)
Method Detail |
---|
protected void initParser()
initParser
in class JavaParser
protected String getPopupItems(int popupLocation)
getPopupItems
in class JavaParser
popupLocation
- 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)
protected void setStyleAttributes()
'f'
(SQL built-in function).
setStyleAttributes
in class JavaParser
public String getProperty(String key)
getProperty
in interface LpexParser
getProperty
in class JavaParser
key
- property name, for example, "proto.doc" for this parser's expansion
of the keyword "doc" by the proto action, or
"view.proto.doc" for this property as defined in the current view's
instance of the parserLpexCommonParser.getLanguage()
,
LpexCommonParser.getProfile()
,
Parser propertiesprotected SqlLexer getSqlLexer(LpexCharStream stream)
getSqlLexer
in class JavaParser
stream
- input character stream for the SQL lexer
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |