Class CliTool
java.lang.Object
morfologik.tools.CliTool
- All Implemented Interfaces:
Callable<ExitStatus>
- Direct Known Subclasses:
DictApply, DictCompile, DictDecompile, FSACompile, FSADecompile, FSAInfo
Base class for command-line applications.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> TcheckNotNull(T arg) protected static voidParse and execute a single command.protected static voidParse and execute one of the commands.protected static voidvoidsetCallSystemExit(boolean flag) CallSystem.exit(int)at the end of command processing.
-
Field Details
-
ARG_OVERWRITE
- See Also:
-
ARG_VALIDATE
- See Also:
-
-
Constructor Details
-
CliTool
public CliTool()
-
-
Method Details
-
setCallSystemExit
public void setCallSystemExit(boolean flag) CallSystem.exit(int)at the end of command processing.- Parameters:
flag- CallSystem.exit(int)iftrue.
-
main
-
main
-
printf
-
checkNotNull
protected static <T> T checkNotNull(T arg)
-