com.ibm.lpex.cobol
Class ILECobolParser
java.lang.Object
com.ibm.lpex.core.LpexCommonParser
com.ibm.lpex.cobol.CobolParser
com.ibm.lpex.cobol.ILECobolParser
- All Implemented Interfaces:
- LpexConstants, LpexParser
- Direct Known Subclasses:
- ILECobolSqlCicsParser
- public class ILECobolParser
- extends CobolParser
Document parser for ILE COBOL/400.
Fields inherited from class com.ibm.lpex.cobol.CobolParser |
_classAll, _classAreaA, _classAreaB, _classBackwardLink, _classBlank, _classCics, _classComment, _classDirective, _classDivision, _classError, _classForwardLink, _classPreprocessor, _classSection, _classSql, _currentBytePosition, _currentCharacterPosition, _currentElement, _currentElementCompleted, _dbcsUserDefinedWord, _decimalLength, _directiveError, _directiveStartBytePosition, _directiveTokenStartBytePosition, _directiveTokenText, _endElement, _exponentLength, _firstTokenFragment, _freeParseElements, _inNonnumericLiteral, _integerLength, _lastTokenFragment, _multiTokenStartElement, _nonnumericLiteralDelimiter, _nonnumericLiteralHasClosingDelimiter, _nonnumericLiteralHasDBCS, _nonnumericLiteralHasNonbinary, _nonnumericLiteralHasNonhexadecimal, _nonnumericLiteralHasSBCS, _nonnumericLiteralLength, _nonnumericLiteralType, _nSymbolNational, _parseElements, _parseMode, _previousCharacterWidth, _reservedWord, _saveTokenCharacter, _saveTokenCharacterBytePosition, _saveTokenCharacterElement, _saveTokenCharacterPosition, _saveTokenCharacterValid, _startElement, _tokenHasDelimiter, _tokenText, CLASS_AREAA, CLASS_AREAB, CLASS_BLANK, CLASS_BWDLINK, CLASS_CICS, CLASS_COMMENT, CLASS_DIRECTIVE, CLASS_DIVISION, CLASS_ERROR, CLASS_FWDLINK, CLASS_PREPROCESSOR, CLASS_SECTION, CLASS_SQL, PARSE_MODE_CODE, PARSE_MODE_COMMENT_ENTRY, PARSE_MODE_DATE, PARSE_MODE_DATE_FORMAT, PARSE_MODE_DATE_FORMAT_IS, PARSE_MODE_FUNCTION, PARSE_MODE_LAST, PARSE_MODE_OPTIONAL_ID_PARAGRAPH, PARSE_MODE_PICTURE, PARSE_MODE_PICTURE_IS, PARSE_MODE_PREPROCESSOR, PARSE_MODE_PSEUDO_TEXT
|
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_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_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
|
Method Summary |
protected CobolWords.Word
| findDirective()
Return the directive word indicated by the current directive token
(_directiveTokenText).
|
protected boolean
| isDirectiveLine()
Return true if the current line is a directive line.
|
protected boolean
| isFunctionName()
Return true if the current token is a function name.
|
protected boolean
| isProcessOption()
Return true if the current token is a process statement option.
|
protected boolean
| isReservedWord()
Return true if the current token is a reserved word.
|
protected int
| maxDigits()
Return the maximum number of digits allowed in a numeric literal.
|
protected int
| maxExponent()
Return the maximum number of digits allowed in the exponent of a floating-point literal.
|
protected int
| maxPicture()
Return the maximum number of characters allowed in the picture string.
|
protected String
| nonnumericLiteralTypes()
Return a string indicating valid nonnumeric literal types.
|
protected void
| parseNonnumericLiteral()
Parse the current nonnumeric literal.
|
protected void
| parseProcessOption()
Parse the current process statement option.
|
protected void
| parseProcessToken()
Parse a PROCESS statement token.
|
protected void
| parseReservedWord()
Parse the current reserved word.
|
protected void
| parseToken()
Parse the current token.
|
Methods inherited from class com.ibm.lpex.cobol.CobolParser |
addErrorMessage, addErrorMessage, checkSequenceNumbersSetting, completeCurrentElement, continueParse, evaluateBeginElement, evaluateEndElement, findParseElement, flushElements, getCicsLexer, getCommentStyleCharacters, getDirectiveToken, getLanguage, getLanguage, getLshToken, getNSYMBOL, getPopupItems, getProfile, getSqlLexer, getToken, initCurrentElement, initializeParser, isCommaOrSemicolon, isNonnumericLiteral, isNumericLiteral, isPeriod, isPreprocessorStart, isPseudoTextStart, isSeparator, isUserDefinedWord, linkElements, linkLexedElements, maxMantissa, nextCharacter, nextTokenCharacter, nextTokenElement, parse, parseAll, parseCodeToken, parseCommentEntryToken, parseDateFormatIsToken, parseDateFormatString, parseDateFormatToken, parseDateToken, parseDirectiveLine, parseElement, parseErrorToken, parseFunctionToken, parseIndicatorArea, parseNumericLiteral, parseOptionalIdParagraphToken, parsePictureIsToken, parsePictureString, parsePictureToken, parsePreprocessorStart, parsePreprocessorToken, parsePseudoTextStart, parsePseudoTextToken, parseSeparator, parseUserDefinedWord, reInitCurrentElement, saveTokenCharacter, setProperty, setStyleAttributes, setToken, setToken, setToken, setToken, setTokenEnd
|
Methods inherited from class com.ibm.lpex.core.LpexCommonParser |
addMessage, addMessage, addMessage, blockMarkWord, cursorIndent, expandProtoKeyword, getInstallStyleAttributes, getPopupParserItems, getPopupViewItems, getProperty, getStyleName, getStyles, getTextIndent, getToken, getTokenLocation, indentText, indentText, indentText, isDebuggable, isTokenDelimiter, lineComment, lpexView, matchToken, newLine, openLine, parse, removeMessages, removeMessages, resetParser, 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
|
PARSE_MODE_PROCESS
protected static final int PARSE_MODE_PROCESS
- "PROCESS" has been detected. The parser will now look for
a reserved word that is not a PROCESS statement option or a
period separator.
- See Also:
- Constant Field Values
ILECobolParser
public ILECobolParser(LpexView lpexView)
- Constructor for the parser.
- Parameters:
- lpexView - the LPEX document view associated with this parser
findDirective
protected CobolWords.Word findDirective()
- Return the directive word indicated by the current directive token
(_directiveTokenText).
- Overrides:
- findDirective in class CobolParser
isDirectiveLine
protected boolean isDirectiveLine()
- Return true if the current line is a directive line.
- Overrides:
- isDirectiveLine in class CobolParser
parseToken
protected void parseToken()
- Parse the current token.
- Overrides:
- parseToken in class CobolParser
isReservedWord
protected boolean isReservedWord()
- Return true if the current token is a reserved word.
- Overrides:
- isReservedWord in class CobolParser
parseReservedWord
protected void parseReservedWord()
- Parse the current reserved word.
- Overrides:
- parseReservedWord in class CobolParser
nonnumericLiteralTypes
protected String nonnumericLiteralTypes()
- Return a string indicating valid nonnumeric literal types.
- Overrides:
- nonnumericLiteralTypes in class CobolParser
parseNonnumericLiteral
protected void parseNonnumericLiteral()
- Parse the current nonnumeric literal.
- Overrides:
- parseNonnumericLiteral in class CobolParser
maxDigits
protected int maxDigits()
- Return the maximum number of digits allowed in a numeric literal.
- Overrides:
- maxDigits in class CobolParser
maxExponent
protected int maxExponent()
- Return the maximum number of digits allowed in the exponent of a floating-point literal.
- Overrides:
- maxExponent in class CobolParser
maxPicture
protected int maxPicture()
- Return the maximum number of characters allowed in the picture string.
- Overrides:
- maxPicture in class CobolParser
isFunctionName
protected boolean isFunctionName()
- Return true if the current token is a function name.
- Overrides:
- isFunctionName in class CobolParser
isProcessOption
protected boolean isProcessOption()
- Return true if the current token is a process statement option.
parseProcessOption
protected void parseProcessOption()
- Parse the current process statement option.
parseProcessToken
protected void parseProcessToken()
- Parse a PROCESS statement token.