com.sun.tools.javac.main
Interface JavacOption

All Known Implementing Classes:
JavacOption.HiddenOption, JavacOption.Option, JavacOption.XOption

public interface JavacOption

TODO: describe com.sun.tools.javac.main.JavacOption

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Nested Class Summary
static class JavacOption.ChoiceKind
           
static class JavacOption.HiddenOption
          A hidden (implementor) option
static class JavacOption.Option
          This class represents an option recognized by the main program
static class JavacOption.OptionKind
           
static class JavacOption.XOption
          A nonstandard or extended (-X) option
 
Method Summary
 JavacOption.OptionKind getKind()
           
 OptionName getName()
           
 boolean hasArg()
          Does this option take a (separate) operand?
 boolean matches(java.lang.String arg)
          Does argument string match option pattern?
 boolean process(Options options, java.lang.String option)
          Process the option with no argument.
 boolean process(Options options, java.lang.String option, java.lang.String arg)
          Process an option with an argument.
 

Method Detail

getKind

JavacOption.OptionKind getKind()

hasArg

boolean hasArg()
Does this option take a (separate) operand?

Returns:
true if this option takes a separate operand

matches

boolean matches(java.lang.String arg)
Does argument string match option pattern?

Parameters:
arg - the command line argument string
Returns:
true if arg matches this option

process

boolean process(Options options,
                java.lang.String option,
                java.lang.String arg)
Process an option with an argument.

Parameters:
options - the accumulated set of analyzed options
option - the option to be processed
arg - the arg for the option to be processed
Returns:
true if an error was detected

process

boolean process(Options options,
                java.lang.String option)
Process the option with no argument.

Parameters:
options - the accumulated set of analyzed options
option - the option to be processed
Returns:
true if an error was detected

getName

OptionName getName()