public class GeneralNativeCommandModule extends AbstractFileDependentModule
Modifier and Type | Class and Description |
---|---|
class |
GeneralNativeCommandModule.LogOutNative |
static class |
GeneralNativeCommandModule.NativeExecutionException |
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
description |
(package private) java.lang.String |
origDesc |
config, moduleName, version
Constructor and Description |
---|
GeneralNativeCommandModule() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRunNativeCommand() |
ExtractionResult |
extractInformation(java.nio.file.Path path) |
protected KeyValueResult |
extractNative(java.lang.String command,
java.lang.String options,
java.nio.file.Path path) |
GeneralExecutableModuleConfig |
getConfig() |
java.lang.String |
getCurrentOsCommand() |
java.lang.String |
getModuleDescription() |
static void |
main(java.lang.String[] args) |
void |
setModuleName()
By implementing this abstract method the name of the module is specified.
|
void |
setVersion() |
extractFileDependentInformation
getHash, isSelected, setConfig, setSelected, supportsThisOS, toString
public void setModuleName()
AbstractModule
setModuleName
in class AbstractModule
public ExtractionResult extractInformation(java.nio.file.Path path)
extractInformation
in class AbstractFileDependentModule
protected boolean canRunNativeCommand()
protected KeyValueResult extractNative(java.lang.String command, java.lang.String options, java.nio.file.Path path) throws GeneralNativeCommandModule.NativeExecutionException
public void setVersion()
setVersion
in class AbstractModule
public java.lang.String getCurrentOsCommand()
public java.lang.String getModuleDescription()
getModuleDescription
in class AbstractModule
public GeneralExecutableModuleConfig getConfig()
getConfig
in class AbstractModule
public static void main(java.lang.String[] args)