Class RpgSyntaxChecker
java.lang.Object
com.smeup.kokos.sdk.rpgle.syntaxchecker.RpgSyntaxChecker
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a syntax checker withdefault optionsRpgSyntaxChecker(RpgSyntaxCheckerOptions syntaxCheckerOptions) Creates a syntax checker -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAllSources(List<File> sourceDirs, File logPath, RpgSyntaxCheckerCallback callback) voidcheckAllSources(List<File> sourceDirs, File logPath, FilenameFilter filenameFilter, RpgSyntaxCheckerCallback callback) Checks all rpgle sources and writes the checking result to logPath
-
Field Details
-
AT_POSITION_REGEXP
- See Also:
-
-
Constructor Details
-
RpgSyntaxChecker
Creates a syntax checker- Parameters:
syntaxCheckerOptions- Syntax checker option
-
RpgSyntaxChecker
public RpgSyntaxChecker()Creates a syntax checker withdefault 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 pathfilenameFilter- filename filter- Throws:
com.smeup.kokos.sdk.model.KokosException- in case of error
-