com.sun.tools.javac.util
Class Options

java.lang.Object
  extended by com.sun.tools.javac.util.Options

public class Options
extends java.lang.Object

A table of all command-line options. If an option has an argument, the option name is mapped to the argument. If a set option has no argument, it is mapped to itself.

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.


Field Summary
(package private) static java.lang.String LINT
           
static Context.Key<Options> optionsKey
          The context key for the options.
private static long serialVersionUID
           
private  java.util.LinkedHashMap<java.lang.String,java.lang.String> values
           
 
Constructor Summary
protected Options(Context context)
           
 
Method Summary
 java.lang.String get(OptionName name)
           
 java.lang.String get(java.lang.String name)
           
static Options instance(Context context)
          Get the Options instance for this context.
 java.util.Set<java.lang.String> keySet()
           
 boolean lint(java.lang.String s)
          Check for a lint suboption.
 void put(OptionName name, java.lang.String value)
           
 void put(java.lang.String name, java.lang.String value)
           
 void putAll(Options options)
           
 void remove(java.lang.String name)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

optionsKey

public static final Context.Key<Options> optionsKey
The context key for the options.


values

private java.util.LinkedHashMap<java.lang.String,java.lang.String> values

LINT

static final java.lang.String LINT
See Also:
Constant Field Values
Constructor Detail

Options

protected Options(Context context)
Method Detail

instance

public static Options instance(Context context)
Get the Options instance for this context.


get

public java.lang.String get(java.lang.String name)

get

public java.lang.String get(OptionName name)

put

public void put(java.lang.String name,
                java.lang.String value)

put

public void put(OptionName name,
                java.lang.String value)

putAll

public void putAll(Options options)

remove

public void remove(java.lang.String name)

keySet

public java.util.Set<java.lang.String> keySet()

size

public int size()

lint

public boolean lint(java.lang.String s)
Check for a lint suboption.