openjava.ojc
Class CommandArguments

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

public class CommandArguments
extends Object

Represents the argument list passed to a Java compiler.

Since:
%SOFTWARE% 1.0
Version:
1.0
Author:
Michiaki Tatsubori
See Also:
JavaCompiler, JavaCompilerArgs

Field Summary
static int DEBUG_CALLER
           
static int DEBUG_VERBOSE
           
private  File[] files
           
private  Hashtable options
           
private  String[] originalArgs
           
 
Constructor Summary
CommandArguments(String[] args)
           
 
Method Summary
 boolean callerTranslation()
           
private  void checkArguments()
           
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)
           
 File[] initFiles()
           
private static boolean isOption(String arg)
           
private static String optionKind(String str)
           
private static String optionValue(String str)
           
 boolean qualifyNameFirst()
           
 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

DEBUG_CALLER

public static final int DEBUG_CALLER
See Also:
Constant Field Values

originalArgs

private final String[] originalArgs

options

private Hashtable options

files

private File[] files
Constructor Detail

CommandArguments

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

getFiles

public File[] getFiles()

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

callerTranslation

public boolean callerTranslation()

qualifyNameFirst

public boolean qualifyNameFirst()

checkArguments

private void checkArguments()
                     throws IOException
IOException

SourceForge.net_Logo