org.javacc.parser
Class Options

java.lang.Object
  extended by org.javacc.parser.Options

public class Options
extends java.lang.Object

A class with static state that stores all option information.


Field Summary
static java.util.Hashtable cmdLineSetting
          These tables store information on whether the option has been explicitly set on the command line or input file respectively.
static java.util.Hashtable inputFileSetting
           
static java.util.Hashtable optionValues
          A mapping of option names (String's) to values (Integer, Boolean, String).
 
Constructor Summary
Options()
           
 
Method Summary
static boolean B(java.lang.String s)
           
static int I(java.lang.String s)
          The following three functions extract option values in a convenient manner for users.
static void JavaCCInit()
          Initialize for JavaCC
static void normalize()
           
static void reInit()
           
static java.lang.String S(java.lang.String s)
           
static void setCmdLineOption(java.lang.String arg)
           
static void setInputFileOption(java.lang.Object nameloc, java.lang.Object valueloc, java.lang.String name, boolean value)
           
static void setInputFileOption(java.lang.Object nameloc, java.lang.Object valueloc, java.lang.String name, int value)
           
static void setInputFileOption(java.lang.Object nameloc, java.lang.Object valueloc, java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionValues

public static java.util.Hashtable optionValues
A mapping of option names (String's) to values (Integer, Boolean, String). This table is initialized by the main program. Its contents define the set of legal options, its initial values define the default option values, and the option types can be determined from these values too.


cmdLineSetting

public static java.util.Hashtable cmdLineSetting
These tables store information on whether the option has been explicitly set on the command line or input file respectively. The table contains String's, their mappings are not important.


inputFileSetting

public static java.util.Hashtable inputFileSetting
Constructor Detail

Options

public Options()
Method Detail

I

public static int I(java.lang.String s)
The following three functions extract option values in a convenient manner for users.


B

public static boolean B(java.lang.String s)

S

public static java.lang.String S(java.lang.String s)

JavaCCInit

public static void JavaCCInit()
Initialize for JavaCC


setInputFileOption

public static void setInputFileOption(java.lang.Object nameloc,
                                      java.lang.Object valueloc,
                                      java.lang.String name,
                                      int value)

setInputFileOption

public static void setInputFileOption(java.lang.Object nameloc,
                                      java.lang.Object valueloc,
                                      java.lang.String name,
                                      boolean value)

setInputFileOption

public static void setInputFileOption(java.lang.Object nameloc,
                                      java.lang.Object valueloc,
                                      java.lang.String name,
                                      java.lang.String value)

setCmdLineOption

public static void setCmdLineOption(java.lang.String arg)

normalize

public static void normalize()

reInit

public static void reInit()