|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openjava.ojc.CommandArguments2
Represents the argument list passed to a Java compiler.
Object
Field Summary | |
static int |
DEBUG_VERBOSE
|
private File[] |
files
|
private Hashtable |
options
|
private String[] |
originalArgs
|
Constructor Summary | |
CommandArguments2(String[] args)
|
Method Summary | |
private void |
check()
|
private static int |
countUpOptions(String[] args)
|
int |
getDebugLevel()
|
File[] |
getFiles()
|
JavaCompiler |
getJavaCompiler()
|
String |
getOption(String option_name)
|
String |
getOption(String opt1,
String opt2)
|
String[] |
getOptions(String option_name)
|
void |
init()
|
File[] |
initFiles()
|
private static boolean |
isCompilerOption(String arg)
Tests if the argument is "-compiler". |
private static boolean |
isConnectedCompilerOption(String arg)
Tests if the argument is of "-compiler=clazz" style. |
private static boolean |
isConnectedDistOption(String arg)
Tests if the argument is of "-d=dir" style. |
private static boolean |
isDistOption(String arg)
Tests if the argument is "-d". |
private static boolean |
isFiles(String arg)
Tests if the argument is of "@sourcefiles" style. |
private static boolean |
isJavacOption(String arg)
Tests if the argument is of "-Csomething" or "-C=something" style. |
private static boolean |
isOption(String arg)
|
private static boolean |
isVerboseOption(String arg)
Tests if the argument is of "-opt" style. |
private static String |
optionKind(String str)
|
private static String |
optionValue(String str)
|
void |
registerOption(String str)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEBUG_VERBOSE
private final String[] originalArgs
private Hashtable options
private File[] files
Constructor Detail |
public CommandArguments2(String[] args) throws IOException
Method Detail |
public File[] getFiles()
public void init()
public File[] initFiles()
private static boolean isOption(String arg)
private static int countUpOptions(String[] args)
public void registerOption(String str)
private static String optionKind(String str)
private static String optionValue(String str)
public String getOption(String option_name)
public String[] getOptions(String option_name)
public String getOption(String opt1, String opt2)
public int getDebugLevel()
public JavaCompiler getJavaCompiler() throws ClassNotFoundException, InstantiationException, IllegalAccessException
ClassNotFoundException
InstantiationException
IllegalAccessException
private void check() throws IOException
IOException
private static boolean isFiles(String arg)
private static boolean isJavacOption(String arg)
private static boolean isVerboseOption(String arg)
private static boolean isDistOption(String arg)
private static boolean isConnectedDistOption(String arg)
private static boolean isCompilerOption(String arg)
private static boolean isConnectedCompilerOption(String arg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |