public class CobolFreeFormatSourceCleaner extends AbstractCobolSourceCleaner
Free format is the Microfocus and open COBOL format where column 1 is the indicator area but code can start at column 1 as well. There are no area A and B anymore and code has no fixed right margin.
AbstractCobolSourceCleaner.CleaningContextALPHANUM_LITERAL_START, COBOL_DELIMITER, COMPILER_DIRECTIVES, DATA_DESCRIPTION_END, DATA_DESCRIPTION_START, DATA_DIVISION, IDENTIFICATION_DIVISION, PROCEDURE_DIVISION| Constructor and Description |
|---|
CobolFreeFormatSourceCleaner(RecognizerErrorHandler errorHandler)
Construct with a shared error handler.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndicatorAreaPos() |
boolean |
isComment(String line)
Specialized cleaners determine if this line is a comment.
|
clean, cleanLine, emitErrorMessage, extendedCleanLine, getErrorHandler, isArgument, isDataDivision, isLineOfCode, removeExtraneousCharacters, replaceLongSeparatorspublic CobolFreeFormatSourceCleaner(RecognizerErrorHandler errorHandler)
errorHandler - handles error messagespublic int getIndicatorAreaPos()
getIndicatorAreaPos in class AbstractCobolSourceCleanerpublic boolean isComment(String line)
AbstractCobolSourceCleanerisComment in class AbstractCobolSourceCleanerline - the line to checkCopyright © 2021 LegSem. All rights reserved.