public class CobolFixedFormatSourceCleaner extends AbstractCobolSourceCleaner
Fixed format is the traditional IBM z/OS format where columns 1-6 contain sequence numbers, column 7 is the indicator area, area A spans from column 8 to 11 and area B from 12 to 72.
AbstractCobolSourceCleaner.CleaningContextALPHANUM_LITERAL_START, COBOL_DELIMITER, COMPILER_DIRECTIVES, DATA_DESCRIPTION_END, DATA_DESCRIPTION_START, DATA_DIVISION, IDENTIFICATION_DIVISION, PROCEDURE_DIVISION| Constructor and Description |
|---|
CobolFixedFormatSourceCleaner(RecognizerErrorHandler errorHandler,
int startColumn,
int endColumn)
Construct with a shared error handler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
cleanFixedLine(String line)
Clear sequence numbers in column 1-6 and anything beyond column 72.
|
String |
extendedCleanLine(String line)
Derived classes can extend this method to further clean a line of code.
|
int |
getIndicatorAreaPos() |
boolean |
isComment(String line)
Specialized cleaners determine if this line is a comment.
|
clean, cleanLine, emitErrorMessage, getErrorHandler, isArgument, isDataDivision, isLineOfCode, removeExtraneousCharacters, replaceLongSeparatorspublic CobolFixedFormatSourceCleaner(RecognizerErrorHandler errorHandler, int startColumn, int endColumn)
errorHandler - handles error messagesstartColumn - column where code starts (indicator area)endColumn - column where code ends (right margin)public String extendedCleanLine(String line)
extendedCleanLine in class AbstractCobolSourceCleanerline - the current line of codepublic int getIndicatorAreaPos()
getIndicatorAreaPos in class AbstractCobolSourceCleanerpublic String cleanFixedLine(String line)
line - the line of codepublic boolean isComment(String line)
AbstractCobolSourceCleanerisComment in class AbstractCobolSourceCleanerline - the line to checkCopyright © 2021 LegSem. All rights reserved.