Package com.softwaremining.util.inspect
Class CBLInspectProcessor
java.lang.Object
com.softwaremining.util.inspect.CBLInspectProcessor
The INSPECT statement can be used to tally the number of occurrences of specific character strings,
to replace characters by other characters, or to convert from one set of characters to another.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCBLInspectProcessor(CBLBean wrapper) Constructor.CBLInspectProcessor(ISMObject field) Constructor.CBLInspectProcessor(ISMObject field, int beginIndex, int length) CBLInspectProcessor(String theString) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatement(Converting converting, String convertFrom, int convertTo, String after, String before) voidaddStatement(Converting converting, String convertFrom, String convertTo) voidaddStatement(Converting converting, String convertFrom, String convertTo, String after, String before) voidaddStatement(Replacing replacing, Characters characters, char strToReplace, String after, String before) voidaddStatement(Replacing replacing, Characters characters, String strToReplace) voidaddStatement(Replacing replacing, Characters characters, String strToFind, char strToReplace, String after, String before) voidaddStatement(Replacing replacing, Characters characters, String strToReplace, String after, String before) voidaddStatement(Replacing replacing, Characters characters, String strToFind, String strToReplace, String after, String before) voidaddStatement(Replacing replacing, First first, char strToFind, char strToReplace, String after, String before) voidaddStatement(Replacing replacing, First first, char strToFind, String strToReplace, String after, String before) voidaddStatement(Replacing replacing, First first, String strToFind, char strToReplace, String after, String before) voidaddStatement(Replacing replacing, First first, String strToFind, long strToReplace, String after, String before) voidaddStatement(Replacing replacing, First first, String strToFind, String strToReplace) voidaddStatement(Replacing replacing, First first, String strToFind, String strToReplace, String after, String before) voidaddStatement(Replacing replacing, Trailing trailing, char strToFind, char strToReplace, String after, String before) voidaddStatement(Replacing replacing, Trailing trailing, String strToFind, String strToReplace, String after, String before) voidaddStatement(Tallying talling, ISMObject counterField, AllLeading allLeading, int strToFind, String after, ISMString before) voidaddStatement(Tallying talling, ISMObject counterField, AllLeading al, int strToFind, String after, String before) voidaddStatement(Tallying talling, ISMObject counterField, AllLeading allLeading, String strToFind) voidaddStatement(Tallying talling, ISMObject counterField, AllLeading characters, String after, String before) voidaddStatement(Tallying talling, ISMObject counterField, AllLeading al, String strToFind, String after, String before) voidaddStatement(Tallying talling, ISMObject counterField, Characters characters) voidaddStatement(Tallying talling, ISMObject counterField, Characters characters, String after, String before) Inspect Processor: Add parameters for processingprocess()voidreinitialize(CBLBean newWrapper) reinitialize allows the re-use of this instance of the class to Inspect another fieldvoidreinitialize(ISMObject newField) reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on another fieldvoidreinitialize(ISMObject newField, int beginIndex, int length) reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on Parts of specified fieldsvoidreinitialize(String theValue) reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on Parts of specified fields
-
Field Details
-
totalRuntime
public static long totalRuntimefor internal profiling purpose
-
-
Constructor Details
-
CBLInspectProcessor
Constructor.- Parameters:
field- .. field which is going to be inspected.
-
CBLInspectProcessor
-
CBLInspectProcessor
Constructor.- Parameters:
field- .. field which is going to be inspected.
-
CBLInspectProcessor
Constructor.- Parameters:
wrapper- - instance of class which is going to be inspected.
-
-
Method Details
-
reinitialize
reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on another field- Parameters:
newField- .. field which is going to be inspected.
-
reinitialize
reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on Parts of specified fields -
reinitialize
reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on Parts of specified fields- Parameters:
newField- .. field which is going to be inspected.
-
reinitialize
reinitialize allows the re-use of this instance of the class to Inspect another field- Parameters:
newWrapper- - instance of class which is going to be inspected.
-
addStatement
- Parameters:
talling-counterField-characters-
-
addStatement
public void addStatement(Tallying talling, ISMObject counterField, Characters characters, String after, String before) Inspect Processor: Add parameters for processing- Parameters:
talling-counterField-characters-after-before-
-
addStatement
public void addStatement(Tallying talling, ISMObject counterField, AllLeading characters, String after, String before) -
addStatement
public void addStatement(Tallying talling, ISMObject counterField, AllLeading al, String strToFind, String after, String before) - Parameters:
talling-counterField-al-strToFind-after-before-
-
addStatement
public void addStatement(Tallying talling, ISMObject counterField, AllLeading al, int strToFind, String after, String before) - Parameters:
talling-counterField-al-strToFind-after-before-
-
addStatement
public void addStatement(Tallying talling, ISMObject counterField, AllLeading allLeading, int strToFind, String after, ISMString before) - Parameters:
talling-counterField-allLeading-strToFind-after-before-
-
addStatement
public void addStatement(Tallying talling, ISMObject counterField, AllLeading allLeading, String strToFind) - Parameters:
talling-counterField-allLeading-strToFind-
-
addStatement
public void addStatement(Replacing replacing, Characters characters, char strToReplace, String after, String before) - Parameters:
replacing-characters-strToReplace-after-before-
-
addStatement
public void addStatement(Replacing replacing, Characters characters, String strToReplace, String after, String before) - Parameters:
replacing-characters-strToReplace-after-before-
-
addStatement
- Parameters:
replacing-characters-strToReplace-
-
addStatement
- Parameters:
replacing-first-strToFind-strToReplace-
-
addStatement
public void addStatement(Replacing replacing, First first, String strToFind, char strToReplace, String after, String before) - Parameters:
replacing-first-strToFind-strToReplace-after-before-
-
addStatement
public void addStatement(Replacing replacing, First first, String strToFind, long strToReplace, String after, String before) - Parameters:
replacing-first-strToFind-strToReplace-after-before-
-
addStatement
public void addStatement(Replacing replacing, First first, char strToFind, char strToReplace, String after, String before) - Parameters:
replacing-first-strToFind-strToReplace-after-before-
-
addStatement
public void addStatement(Replacing replacing, First first, char strToFind, String strToReplace, String after, String before) - Parameters:
replacing-first-strToFind-strToReplace-after-before-
-
addStatement
public void addStatement(Replacing replacing, First first, String strToFind, String strToReplace, String after, String before) - Parameters:
replacing-first-strToFind-strToReplace-after-before-
-
addStatement
-
addStatement
-
addStatement
public void addStatement(Replacing replacing, Characters characters, String strToFind, String strToReplace, String after, String before) - Parameters:
replacing-characters-strToFind-strToReplace-after-before-
-
addStatement
public void addStatement(Replacing replacing, Characters characters, String strToFind, char strToReplace, String after, String before) - Parameters:
replacing-characters-strToFind-strToReplace-after-before-
-
addStatement
public void addStatement(Converting converting, String convertFrom, int convertTo, String after, String before) -
addStatement
public void addStatement(Converting converting, String convertFrom, String convertTo, String after, String before) -
addStatement
-
process
-