edu.ucla.util.code
Class JDKToolScript

Object
  extended by JDKToolScript
All Implemented Interfaces:
Script
Direct Known Subclasses:
JDKCompile, JDKRun

public abstract class JDKToolScript
extends Object
implements Script

Since:
032405
Author:
Keith Cascio

Field Summary
static String STR_CHMOD
           
static String STR_CHMOD_ARG1
           
 
Constructor Summary
JDKToolScript()
           
 
Method Summary
 ScriptExecution exec(String[] args, File dir, ScriptGenius genius, SystemSoftwareSource source)
           
static String flatten(String[] args)
           
 String getCommand(ScriptGenius genius, SystemSoftwareSource source)
           
abstract  String[] getCommandArray(ScriptGenius genius, SystemSoftwareSource source)
           
 SoftwareEntity[] getDependencies()
           
 boolean isResolved()
           
 boolean isResolved(SystemSoftwareSource source)
           
 String toString()
           
 void write(ScriptGenius genius, SystemSoftwareSource source, File ofile)
           
 void write(ScriptGenius genius, SystemSoftwareSource source, PrintStream out)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Script
getDefaultFileName, getDescriptionComment, getName, getUsage, getUsageExample
 

Field Detail

STR_CHMOD

public static final String STR_CHMOD
See Also:
Constant Field Values

STR_CHMOD_ARG1

public static final String STR_CHMOD_ARG1
See Also:
Constant Field Values
Constructor Detail

JDKToolScript

public JDKToolScript()
Method Detail

write

public void write(ScriptGenius genius,
                  SystemSoftwareSource source,
                  PrintStream out)
           throws Exception
Specified by:
write in interface Script
Throws:
Exception

write

public void write(ScriptGenius genius,
                  SystemSoftwareSource source,
                  File ofile)
           throws Exception
Specified by:
write in interface Script
Throws:
Exception

exec

public ScriptExecution exec(String[] args,
                            File dir,
                            ScriptGenius genius,
                            SystemSoftwareSource source)
                     throws Exception
Specified by:
exec in interface Script
Throws:
Exception

getCommand

public String getCommand(ScriptGenius genius,
                         SystemSoftwareSource source)
                  throws Exception
Throws:
Exception

getCommandArray

public abstract String[] getCommandArray(ScriptGenius genius,
                                         SystemSoftwareSource source)
                                  throws Exception
Throws:
Exception

flatten

public static String flatten(String[] args)

isResolved

public boolean isResolved(SystemSoftwareSource source)
                   throws Exception
Specified by:
isResolved in interface Script
Throws:
Exception
Since:
20050331

isResolved

public boolean isResolved()
Specified by:
isResolved in interface Script
Since:
20091219

getDependencies

public SoftwareEntity[] getDependencies()
Specified by:
getDependencies in interface Script

toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 UCLA Automated Reasoning Group