Package org.jrd.backend.data
Class Cli
java.lang.Object
org.jrd.backend.data.Cli
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
private boolean
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
private final PluginManager
protected static final String
protected static final String
protected static final String
private Cli.Saving
protected static final String
protected static final String
private final VmManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
api()
private static String
cleanParameter
(String param) private void
compile
(Cli.CompileArguments args) void
private void
private DecompilerWrapper
findDecompiler
(String decompilerName) static DecompilerWrapper
findDecompiler
(String decompilerName, PluginManager pluginManager) (package private) VmInfo
static String
guessName
(byte[] fileContents) private VmInfo.Type
private void
init()
static void
initClass
(VmInfo vmInfo, VmManager vmManager, String fqn, PrintStream outputMessageStream) private static String
invalidityToString
(boolean invalidWrapper) boolean
isGui()
private void
listClasses
(boolean details) private void
listClassesFromVmInfo
(VmInfo vmInfo, List<Pattern> filter, boolean details) private void
listJvms()
private void
private static boolean
matchesAtLeastOne
(ClassInfo clazz, List<Pattern> filter) static VmDecompilerStatus
obtainClass
(VmInfo vmInfo, String clazz, VmManager manager) static String[]
obtainClasses
(VmInfo vmInfo, VmManager manager) static ClassInfo[]
obtainClassesDetails
(VmInfo vmInfo, VmManager manager) obtainFilteredClasses
(VmInfo vmInfo, VmManager vmManager, List<Pattern> filter, boolean details) private boolean
private boolean
private void
prefilterArgs
(String[] originalArgs) private void
printBytes
(boolean justBytes) private void
private void
private void
returnNonzero
(int failures, int total) boolean
-
Field Details
-
VERBOSE
- See Also:
-
SAVE_AS
- See Also:
-
SAVE_LIKE
- See Also:
-
LIST_JVMS
- See Also:
-
LIST_PLUGINS
- See Also:
-
LIST_CLASSES
- See Also:
-
LIST_CLASSESDETAILS
- See Also:
-
BASE64
- See Also:
-
BYTES
- See Also:
-
DECOMPILE
- See Also:
-
COMPILE
- See Also:
-
OVERWRITE
- See Also:
-
INIT
- See Also:
-
API
- See Also:
-
VERSION
- See Also:
-
HELP
- See Also:
-
H
- See Also:
-
R
- See Also:
-
P
- See Also:
-
CP
- See Also:
-
filteredArgs
-
vmManager
-
pluginManager
-
saving
-
isVerbose
private boolean isVerbose
-
-
Constructor Details
-
Cli
-
-
Method Details
-
cleanParameter
-
shouldBeVerbose
public boolean shouldBeVerbose() -
isGui
public boolean isGui() -
prefilterArgs
-
consumeCli
- Throws:
Exception
-
overwrite
- Throws:
Exception
-
api
- Throws:
Exception
-
init
- Throws:
Exception
-
initClass
public static void initClass(VmInfo vmInfo, VmManager vmManager, String fqn, PrintStream outputMessageStream) -
compile
- Throws:
Exception
-
guessName
- Throws:
IOException
-
decompile
- Throws:
Exception
-
returnNonzero
private void returnNonzero(int failures, int total) -
outOrSave
- Throws:
IOException
-
outOrSave
private boolean outOrSave(String name, String extension, byte[] body, boolean forceBytes) throws IOException - Throws:
IOException
-
findDecompiler
-
findDecompiler
-
printBytes
- Throws:
Exception
-
listClasses
- Throws:
IOException
-
obtainFilteredClasses
private static List<ClassInfo> obtainFilteredClasses(VmInfo vmInfo, VmManager vmManager, List<Pattern> filter, boolean details) throws IOException - Throws:
IOException
-
listClassesFromVmInfo
private void listClassesFromVmInfo(VmInfo vmInfo, List<Pattern> filter, boolean details) throws IOException - Throws:
IOException
-
matchesAtLeastOne
-
listPlugins
- Throws:
IOException
-
listJvms
- Throws:
IOException
-
printVersion
private void printVersion() -
printHelp
private void printHelp() -
invalidityToString
-
obtainClasses
-
obtainClassesDetails
-
obtainClass
-
guessType
-
getVmInfo
-