Class RpgSyntaxChecker

java.lang.Object
com.smeup.kokos.sdk.rpgle.syntaxchecker.RpgSyntaxChecker

public class RpgSyntaxChecker extends Object
This class contains all rpg syntax checking methods. Its usage must be intended in the context of api or cli interface
Author:
mattia.bonardi
  • Field Details

  • Constructor Details

    • RpgSyntaxChecker

      public RpgSyntaxChecker(RpgSyntaxCheckerOptions syntaxCheckerOptions)
      Creates a syntax checker
      Parameters:
      syntaxCheckerOptions - Syntax checker option
    • RpgSyntaxChecker

      public RpgSyntaxChecker()
      Creates a syntax checker with default options
  • Method Details

    • checkAllSources

      public void checkAllSources(List<File> sourceDirs, File logPath, RpgSyntaxCheckerCallback callback) throws com.smeup.kokos.sdk.model.KokosException
      Throws:
      com.smeup.kokos.sdk.model.KokosException
    • checkAllSources

      public void checkAllSources(List<File> sourceDirs, File logPath, FilenameFilter filenameFilter, RpgSyntaxCheckerCallback callback) throws com.smeup.kokos.sdk.model.KokosException
      Checks all rpgle sources and writes the checking result to logPath
      Parameters:
      sourceDirs - The directories where will be searched the sources. Every directory in this list must be the parent of rpg folder (where rpgle files will be searched) and reload-metadata (where reload metadata files will be searched)
      logPath - file path
      filenameFilter - filename filter
      Throws:
      com.smeup.kokos.sdk.model.KokosException - in case of error