Class Cli


  • public class Cli
    extends java.lang.Object
    • Constructor Detail

      • Cli

        public Cli​(java.lang.String[] orig,
                   Model model)
    • Method Detail

      • cleanParameter

        private static java.lang.String cleanParameter​(java.lang.String param)
      • shouldBeVerbose

        public boolean shouldBeVerbose()
      • isGui

        public boolean isGui()
      • prefilterArgs

        private java.util.List<java.lang.String> prefilterArgs()
      • consumeCli

        public void consumeCli()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • overwrite

        private void overwrite​(java.util.List<java.lang.String> args,
                               int i)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • compile

        private void compile​(java.util.List<java.lang.String> args,
                             int i)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • guessName

        public static java.lang.String guessName​(byte[] bytes)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • decompile

        private void decompile​(java.util.List<java.lang.String> args,
                               int i)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • returnNonzero

        private void returnNonzero​(int failures,
                                   int total)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • outOrSave

        private boolean outOrSave​(java.lang.String name,
                                  java.lang.String suffix,
                                  java.lang.String s)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • outOrSave

        private boolean outOrSave​(java.lang.String name,
                                  java.lang.String suffix,
                                  byte[] body,
                                  boolean forceBin)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • printBytes

        private void printBytes​(java.util.List<java.lang.String> args,
                                int i,
                                boolean bytes)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • listClasses

        private void listClasses​(java.util.List<java.lang.String> args,
                                 int i)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • obtainFilteredClasses

        private static java.util.List<java.lang.String> obtainFilteredClasses​(VmInfo vmInfo,
                                                                              VmManager vmManager,
                                                                              java.util.List<java.util.regex.Pattern> filter)
                                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • listClassesFromVmInfo

        private void listClassesFromVmInfo​(VmInfo vmInfo,
                                           java.util.List<java.util.regex.Pattern> filter)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • matchesAtLeastOne

        private static boolean matchesAtLeastOne​(java.lang.String clazz,
                                                 java.util.List<java.util.regex.Pattern> filter)
      • listPlugins

        private void listPlugins​(java.util.List<java.lang.String> args)
      • listJvms

        private void listJvms​(java.util.List<java.lang.String> args)
      • getJrdAttributes

        protected static java.util.Optional<Cli.VersionFromManifest> getJrdAttributes()
                                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • printVersion

        private void printVersion()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • printHelp

        private void printHelp()
      • invalidityToString

        private static java.lang.String invalidityToString​(boolean invalidWrapper)
      • obtainClasses

        public static java.lang.String[] obtainClasses​(VmInfo vmInfo,
                                                       VmManager manager)
      • guessType

        private VmInfo.Type guessType​(java.lang.String input)
      • getVmInfo

        private VmInfo getVmInfo​(java.lang.String param)