LPEX
4.4.0

com.ibm.lpex.cpp
Class CppCicsParser

java.lang.Object
  extended by com.ibm.lpex.core.LpexCommonParser
      extended by com.ibm.lpex.cpp.CppParser
          extended by com.ibm.lpex.cpp.CppCicsParser
All Implemented Interfaces:
LpexConstants, LpexParser
Direct Known Subclasses:
CppCicsParserAIX, CppCicsParserOS2, CppCicsParserWIN

public class CppCicsParser
extends CppParser

Document parser for C/C++ with embedded CICS statements.

Action added by this parser: cics for a selective view of the embedded CICS statements.


Field Summary
 
Fields inherited from class com.ibm.lpex.cpp.CppParser
CLASS_BRACE, CLASS_BWDLINK, CLASS_CASE, CLASS_CICS, CLASS_CLASS, CLASS_CODE, CLASS_COMMENT, CLASS_COMMENTTASK, CLASS_CONTROL, CLASS_DEBUGGABLE, CLASS_DLI, CLASS_ERROR, CLASS_FUNCTION, CLASS_FWDLINK, CLASS_INCLUDE, CLASS_SEMICOLON, CLASS_SPACE, CLASS_SQL
 
Fields inherited from class com.ibm.lpex.core.LpexCommonParser
ATTRIBUTES_COMMENT, ATTRIBUTES_COMMENT_KEYWORD, ATTRIBUTES_COMMENT1, ATTRIBUTES_DEFAULT, ATTRIBUTES_DIRECTIVE, ATTRIBUTES_ERROR, ATTRIBUTES_ERROR1, ATTRIBUTES_KEYWORD, ATTRIBUTES_KEYWORD1, ATTRIBUTES_LIBRARY, ATTRIBUTES_NONSOURCE, ATTRIBUTES_NUMERAL, ATTRIBUTES_STRING, ATTRIBUTES_STRING1, BACKGROUND_COLOR, CLASS_MESSAGE, LANGUAGE_CCPP, LANGUAGE_CICS, LANGUAGE_CL, LANGUAGE_COBOL, LANGUAGE_COBOL400, LANGUAGE_COBOLILE, LANGUAGE_DDS, LANGUAGE_DLI, LANGUAGE_FORTRAN, LANGUAGE_HLASM, LANGUAGE_HTML, LANGUAGE_JAVA, LANGUAGE_JCL, LANGUAGE_LISP, LANGUAGE_PERL, LANGUAGE_PLI, LANGUAGE_REXX, LANGUAGE_RPG, LANGUAGE_RPGLEFIXED, LANGUAGE_RPGLEFREE, LANGUAGE_SABRETALK, LANGUAGE_SQL, LANGUAGE_XMI, LANGUAGE_XML, LANGUAGE_XSL, LEXER_RC_END, LEXER_RC_EOF, LEXER_RC_MORE, LEXER_RC_OK, POPUP_END, POPUP_FILTERVIEW, POPUP_SOURCE, POPUP_TOP, PROTOKEY_EMPTY, STYLE_MESSAGE, STYLE_NAME, view
 
Fields inherited from interface com.ibm.lpex.core.LpexConstants
HELP_COMMAND_MAP, LPEX_VERSION, MSG_POPUP_COMMENT, MSG_POPUP_ERRORS, MSG_POPUP_EXCLUDESELECTION, MSG_POPUP_FILTERVIEWMENU, MSG_POPUP_INSERTMENU, MSG_POPUP_SELECTEDMENU, MSG_POPUP_SHOWALL, MSG_POPUP_SOURCEMENU, MSG_POPUP_TASKS, MSG_POPUP_UNCOMMENT, PARSE_PENDING_CHANGE_MASK, PARSE_PENDING_INSERT_MASK, PARSE_PENDING_NEXT_DELETED_MASK, PARSE_PENDING_NEXT_SHOW_DELETED_MASK, PARSE_PENDING_PREV_DELETED_MASK, PARSE_PENDING_PREV_SHOW_DELETED_MASK, PARSE_PENDING_UNDO_MASK, PLATFORM_AWT, PLATFORM_SWT, PLATFORM_SWT_KEY, SHOW_ALL, SHOW_DOCUMENT, SHOW_NONE, SHOW_VIEW, STATUS_FIELDS_NOINSERT, STATUS_FIELDS_TRUNCATE, STATUS_FILE_ERRORREADING, STATUS_FILE_INCORRECTENCODING, STATUS_FILE_NOTFOUND, STATUS_FINDTEXT_INVALIDPATTERN, STATUS_FINDTEXT_NOTFOUND, STATUS_FINDTEXT_ONLYOCCURRENCE, STATUS_FINDTEXT_READONLY, STATUS_FINDTEXT_WRAPPED, STATUS_LOCATE_NOSEQUENCETEXT, STATUS_LOCATE_NOTFOUND, STATUS_LOCATE_WRAPPED, STATUS_SAVE_CANCELLED, STATUS_SAVE_FAILED, STATUS_TEXTLIMIT_ENFORCED, STATUS_TEXTLIMIT_OVERFLOW, STATUS_UNDO_NOTHINGUNDONE
 
Constructor Summary
CppCicsParser(LpexView lpexView)
          Constructor.
 
Method Summary
 CicsLexer getCicsLexer(LpexCharStream stream)
          Returns the CicsLexer.
protected  String getPopupItems(int popupLocation)
          Extended to return this parser's contribution to the popup.
protected  void initParser()
          Extended to define the Filter view submenu editor action cics.
 
Methods inherited from class com.ibm.lpex.cpp.CppParser
addErrorMessage, getCommentStyleCharacters, getDliLexer, getLanguage, getLanguage, getLshToken, getPopupItem, getProfile, getSqlLexer, getStream, isCLibraryFunction, isDebuggable, isExtensionKeyword, isTokenDelimiter, isWordCharacter, parseAll, parseElement, propertySet, setLexer, setStyleAttributes
 
Methods inherited from class com.ibm.lpex.core.LpexCommonParser
addDocumentMessage, addMessage, addMessage, addMessage, blockMarkWord, copyDocumentMessages, cursorIndent, defineFilterAction, defineFilterAction, expandProtoKeyword, getInstallStyleAttributes, getProperty, getStyleName, getStyles, getTextIndent, getToken, getTokenLocation, indentText, indentText, indentText, isPrimaryParser, lineComment, lpexView, matchToken, newLine, openLine, parse, removeDocumentMessages, removeMessages, removeMessages, resetParser, setProperty, setStyle, splitLine, 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

CppCicsParser

public CppCicsParser(LpexView lpexView)
Constructor.

Method Detail

initParser

protected void initParser()
Extended to define the Filter view submenu editor action cics.

Overrides:
initParser in class CppParser
See Also:
Life cycle

getPopupItems

protected String getPopupItems(int popupLocation)
Extended to return this parser's contribution to the popup. This parser changes the contribution to the Filter view submenu (Functions, Logic outline, Embedded CICS, Errors, Tasks).

Overrides:
getPopupItems in class CppParser
Parameters:
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
Returns:
this parser's contribution to the pop-up menu, or
null if none
See Also:
LpexCommonParser.defineFilterAction(java.lang.String, java.lang.String)

getCicsLexer

public CicsLexer getCicsLexer(LpexCharStream stream)
Returns the CicsLexer. This method constructs and returns a CicsLexer object for parsing C/C++ embedded CICS statements.

Overrides:
getCicsLexer in class CppParser
Parameters:
stream - input character stream for the lexer

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.