public class CommandLine extends Object
| Constructor and Description |
|---|
CommandLine() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(String[] args)
This method executes the supplied arguments.
|
protected Resource |
getResource(String moduleName)
This method returns the resource associated with the supplied
module name.
|
protected void |
initLoader(String paths)
This method initializes the loader.
|
protected Module |
loadModule(Resource resource)
This method determines whether the module associated with the
supplied resource is valid.
|
static void |
main(String[] args)
This is the main method for the Scribble CLI.
|
protected void |
project(Module module,
Resource resource)
This method projects the supplied module.
|
protected boolean |
simulate(File location)
This method recursively scans the supplied location to determine
if a trace file is present, and if found, simulates it.
|
protected static boolean |
validateModuleName(String module)
This method validates the module name.
|
protected static boolean |
validatePaths(String paths)
This method validates the scribble path.
|
protected static boolean |
validateTraceLocation(File location)
This method validates the trace location.
|
public static void main(String[] args)
args - The argumentspublic boolean execute(String[] args)
args - The argumentsWhether - execution was successfulprotected void initLoader(String paths)
paths - The pathsprotected Resource getResource(String moduleName)
moduleName - The module nameprotected Module loadModule(Resource resource)
resource - The resourceprotected static boolean validateModuleName(String module)
module - The module nameprotected static boolean validatePaths(String paths)
paths - The scribble pathprotected void project(Module module, Resource resource)
module - The moduleresource - The resourceprotected static boolean validateTraceLocation(File location)
location - The locationprotected boolean simulate(File location)
location - The locationCopyright © 2014. All Rights Reserved.