Class CBLInspectProcessor

java.lang.Object
com.softwaremining.util.inspect.CBLInspectProcessor

public class CBLInspectProcessor extends Object
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 Details

    • totalRuntime

      public static long totalRuntime
      for internal profiling purpose
  • Constructor Details

    • CBLInspectProcessor

      public CBLInspectProcessor(ISMObject field)
      Constructor.
      Parameters:
      field - .. field which is going to be inspected.
    • CBLInspectProcessor

      public CBLInspectProcessor(ISMObject field, int beginIndex, int length)
    • CBLInspectProcessor

      public CBLInspectProcessor(String theString)
      Constructor.
      Parameters:
      field - .. field which is going to be inspected.
    • CBLInspectProcessor

      public CBLInspectProcessor(CBLBean wrapper)
      Constructor.
      Parameters:
      wrapper - - instance of class which is going to be inspected.
  • Method Details

    • reinitialize

      public void reinitialize(ISMObject newField)
      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

      public void reinitialize(String theValue)
      reinitialize allows the re-use of this instance of the class to perform the COBOL Inspect operation on Parts of specified fields
    • reinitialize

      public void reinitialize(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 fields
      Parameters:
      newField - .. field which is going to be inspected.
    • reinitialize

      public void reinitialize(CBLBean newWrapper)
      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

      public void addStatement(Tallying talling, ISMObject counterField, Characters characters)
      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

      public void addStatement(Replacing replacing, Characters characters, String strToReplace)
      Parameters:
      replacing -
      characters -
      strToReplace -
    • addStatement

      public void addStatement(Replacing replacing, First first, String strToFind, String strToReplace)
      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

      public void addStatement(Replacing replacing, Trailing trailing, String strToFind, String strToReplace, String after, String before)
    • addStatement

      public void addStatement(Replacing replacing, Trailing trailing, char strToFind, char strToReplace, String after, String before)
    • 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

      public void addStatement(Converting converting, String convertFrom, String convertTo)
    • process

      public String process()