SWT LPEX
v3.0.5

com.ibm.lpex.cpp
Class CppParserOS2

java.lang.Object
  extended bycom.ibm.lpex.core.LpexCommonParser
      extended bycom.ibm.lpex.cpp.CppParser
          extended bycom.ibm.lpex.cpp.CppParserOS2
All Implemented Interfaces:
LpexConstants, LpexParser

public class CppParserOS2
extends CppParser

Document parser for OS/2-flavoured C/C++.


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_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_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_DDS, LANGUAGE_DLI, LANGUAGE_FORTRAN, LANGUAGE_HLASM, LANGUAGE_HTML, LANGUAGE_JAVA, LANGUAGE_JCL, LANGUAGE_LISP, LANGUAGE_PERL, LANGUAGE_PLI, LANGUAGE_REXX, LANGUAGE_RPG, 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_ERRORS, MSG_POPUP_EXCLUDESELECTION, MSG_POPUP_FILTERVIEWMENU, MSG_POPUP_INSERTMENU, MSG_POPUP_SELECTEDMENU, MSG_POPUP_SHOWALL, MSG_POPUP_SOURCEMENU, 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, PLATFORM_AWT, PLATFORM_SWT, PLATFORM_SWT_KEY, 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
 
Constructor Summary
CppParserOS2(LpexView lpexView)
           
 
Method Summary
 boolean isCLibraryFunction(com.ibm.lpex.cc.Token token)
          Returns whether the specified token is an OS/2 C library function.
 boolean isExtensionKeyword(com.ibm.lpex.cc.Token token)
          Returns whether the specified token is an OS/2 C/C++ extension keyword.
 
Methods inherited from class com.ibm.lpex.cpp.CppParser
addErrorMessage, getCicsLexer, getCommentStyleCharacters, getDliLexer, getLanguage, getLanguage, getLshToken, getPopupItems, getProfile, getSqlLexer, isDebuggable, isTokenDelimiter, parseAll, parseElement, setLexer, setStyleAttributes
 
Methods inherited from class com.ibm.lpex.core.LpexCommonParser
addDocumentMessage, addMessage, addMessage, addMessage, blockMarkWord, copyDocumentMessages, cursorIndent, defineFilterAction, expandProtoKeyword, getInstallStyleAttributes, getPopupParserItems, getPopupViewItems, getProperty, getStyleName, getStyles, getTextIndent, getToken, getTokenLocation, indentText, indentText, indentText, lineComment, lpexView, matchToken, newLine, openLine, parse, propertySet, 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

CppParserOS2

public CppParserOS2(LpexView lpexView)
Method Detail

isExtensionKeyword

public boolean isExtensionKeyword(com.ibm.lpex.cc.Token token)
Returns whether the specified token is an OS/2 C/C++ extension keyword.

Overrides:
isExtensionKeyword in class CppParser
Parameters:
token - the token being queried: token.beginLine, token.beginColumn, token.endLine, and token.endColumn identify its location (ONE-based elements and positions in the associated document view)

isCLibraryFunction

public boolean isCLibraryFunction(com.ibm.lpex.cc.Token token)
Returns whether the specified token is an OS/2 C library function.

Overrides:
isCLibraryFunction in class CppParser
Parameters:
token - the token being queried: token.beginLine, token.beginColumn, token.endLine, and token.endColumn identify its location (ONE-based elements and positions in the associated document view)

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.