abc.main
Class Options

java.lang.Object
  extended by abc.main.Options

public class Options
extends java.lang.Object

A class for storing Option flags.

Author:
Laurie Hendren

Field Summary
static byte ALLWARNINGS
           
 java.lang.String compliance
           
static byte ERROR
           
static byte IGNORE
           
static byte NOWARNINGS
           
static byte SOMEWARNINGS
           
 java.lang.String source
           
 java.lang.String target
           
static Options v
           
 byte warn
           
static byte WARNING
           
 byte Xlint
           
 
Constructor Summary
Options()
           
 
Method Summary
 void addWarning(java.lang.String warningName)
          add a warning to list that should be emitted.
 boolean emitWarning(java.lang.String warningName)
          returns true if warning with type warningName should be emitted
 boolean emitXlintError()
          returns true if Xlint errors should be emitted
 boolean emitXlintWarning()
          returns true if Xlint warnings should be emitted
 boolean isValidWarningName(java.lang.String warningName)
          return true if an allowed warning name
static void reset()
           
static Options v()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v

public static Options v

IGNORE

public static final byte IGNORE
See Also:
Constant Field Values

WARNING

public static final byte WARNING
See Also:
Constant Field Values

ERROR

public static final byte ERROR
See Also:
Constant Field Values

Xlint

public byte Xlint

source

public java.lang.String source

target

public java.lang.String target

compliance

public java.lang.String compliance

NOWARNINGS

public static final byte NOWARNINGS
See Also:
Constant Field Values

ALLWARNINGS

public static final byte ALLWARNINGS
See Also:
Constant Field Values

SOMEWARNINGS

public static final byte SOMEWARNINGS
See Also:
Constant Field Values

warn

public byte warn
Constructor Detail

Options

public Options()
Method Detail

v

public static Options v()

reset

public static void reset()

emitXlintWarning

public boolean emitXlintWarning()
returns true if Xlint warnings should be emitted


emitXlintError

public boolean emitXlintError()
returns true if Xlint errors should be emitted


isValidWarningName

public boolean isValidWarningName(java.lang.String warningName)
return true if an allowed warning name


addWarning

public void addWarning(java.lang.String warningName)
add a warning to list that should be emitted. Has side-effect of setting warn to SOMEWARNINGS


emitWarning

public boolean emitWarning(java.lang.String warningName)
returns true if warning with type warningName should be emitted