Class AbstractCommand<C extends Configuration<C>>

java.lang.Object
org.kordamp.jarviz.core.internal.AbstractCommand<C>
Direct Known Subclasses:
BytecodeShowCommand, ChecksumCommand, EntriesExtractCommand, EntriesFindCommand, ManifestQueryCommand, ManifestShowCommand, ModuleDescriptorCommand, ModuleNameCommand, PackagesSplitCommand, PackagesValidateCommand, ServicesListCommand, ServicesShowCommand

public abstract class AbstractCommand<C extends Configuration<C>> extends Object
Since:
0.3.0
  • Field Details

  • Constructor Details

    • AbstractCommand

      public AbstractCommand()
  • Method Details

    • execute

      public abstract int execute(C configuration)
    • resolveCacheDirectory

      protected Path resolveCacheDirectory(C configuration)
    • resolveReportPath

      protected Path resolveReportPath(C configuration, Format format)
    • resolveFormatter

      protected Formatter resolveFormatter(Format format)
    • createRootNode

      protected Node createRootNode()
    • appendSubject

      protected Node appendSubject(Node root, Path jarPath, String command, Consumer<Node> result)
    • writeOutput

      protected void writeOutput(C configuration, String content)
    • writeReport

      protected void writeReport(C configuration, String content, Format format)
    • $$

      protected String $$(String key, Object... args)
    • $b

      protected String $b(boolean val)
    • fileSize

      private long fileSize(Path jarPath)
    • sha256

      private String sha256(Path jarPath)
    • createJarFileResolver

      protected JarFileResolver createJarFileResolver(C configuration)