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 Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprivate booleanprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprivate final PluginManagerprotected static final Stringprotected static final Stringprotected static final Stringprivate Cli.Savingprotected static final Stringprotected static final Stringprivate final VmManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapi()private static StringcleanParameter(String param) private voidcompile(Cli.CompileArguments args) voidprivate voidprivate DecompilerWrapperfindDecompiler(String decompilerName) static DecompilerWrapperfindDecompiler(String decompilerName, PluginManager pluginManager) (package private) VmInfostatic StringguessName(byte[] fileContents) private VmInfo.Typeprivate voidinit()static voidinitClass(VmInfo vmInfo, VmManager vmManager, String fqn, PrintStream outputMessageStream) private static StringinvalidityToString(boolean invalidWrapper) booleanisGui()private voidlistClasses(boolean details) private voidlistClassesFromVmInfo(VmInfo vmInfo, List<Pattern> filter, boolean details) private voidlistJvms()private voidprivate static booleanmatchesAtLeastOne(ClassInfo clazz, List<Pattern> filter) static VmDecompilerStatusobtainClass(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 booleanprivate booleanprivate voidprefilterArgs(String[] originalArgs) private voidprintBytes(boolean justBytes) private voidprivate voidprivate voidreturnNonzero(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
-