openjava.ojc
Class CommandArguments2

java.lang.Object
  |
  +--openjava.ojc.CommandArguments2

public class CommandArguments2
extends Object

Represents the argument list passed to a Java compiler.

Since:
%SOFTWARE% 1.0
Version:
1.0
Author:
Michiaki Tatsubori
See Also:
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

DEBUG_VERBOSE

public static final int DEBUG_VERBOSE
See Also:
Constant Field Values

originalArgs

private final String[] originalArgs

options

private Hashtable options

files

private File[] files
Constructor Detail

CommandArguments2

public CommandArguments2(String[] args)
                  throws IOException
Method Detail

getFiles

public File[] getFiles()

init

public void init()

initFiles

public File[] initFiles()

isOption

private static boolean isOption(String arg)

countUpOptions

private static int countUpOptions(String[] args)

registerOption

public void registerOption(String str)

optionKind

private static String optionKind(String str)

optionValue

private static String optionValue(String str)

getOption

public String getOption(String option_name)

getOptions

public String[] getOptions(String option_name)

getOption

public String getOption(String opt1,
                        String opt2)

getDebugLevel

public int getDebugLevel()

getJavaCompiler

public JavaCompiler getJavaCompiler()
                             throws ClassNotFoundException,
                                    InstantiationException,
                                    IllegalAccessException
ClassNotFoundException
InstantiationException
IllegalAccessException

check

private void check()
            throws IOException
IOException

isFiles

private static boolean isFiles(String arg)
Tests if the argument is of "@sourcefiles" style.


isJavacOption

private static boolean isJavacOption(String arg)
Tests if the argument is of "-Csomething" or "-C=something" style.


isVerboseOption

private static boolean isVerboseOption(String arg)
Tests if the argument is of "-opt" style.


isDistOption

private static boolean isDistOption(String arg)
Tests if the argument is "-d".


isConnectedDistOption

private static boolean isConnectedDistOption(String arg)
Tests if the argument is of "-d=dir" style.


isCompilerOption

private static boolean isCompilerOption(String arg)
Tests if the argument is "-compiler".


isConnectedCompilerOption

private static boolean isConnectedCompilerOption(String arg)
Tests if the argument is of "-compiler=clazz" style.


SourceForge.net_Logo