| java.lang.Object config.Configurator
Configurator | public class Configurator (Code) | | The Configurator class deals with the creation of jvmconfig.h,
which controls the build options of the VM (e.g.,
ENABLE_JAVA_DEBUGGER, ENABLE_CLDC_11, etc).
See src/vm/share/utilities/BuildFlags.hpp about how the content of
jvmconfig.h is specified.
|
Method Summary | |
void | addComments(EnableFlag flag, String line) | void | checkSpuriousFlags(Hashtable env) Print a warning if an unknown ENABLE_XXX flag is specified in the
env. | int | getDefault(char c) | public String | getDefaultValue(String name) | public Vector | getFlagNames() | public String | getProductName() | public String | getReleaseVersion() | void | getValue(Hashtable env, String name, FlagValue value) | public void | readInputFile(String infile) | public void | readPlatformFile(String infile) | public void | readProductFile(String infile) | EnableFlag | tryStartFlag(String line) | public void | write(String outfile, Hashtable env, Vector extra) Write the output file. | void | writeConfigEpilog(PrintWriter writer) | void | writeConfigProlog(PrintWriter writer) | void | writeDump(PrintWriter writer, Vector flags, boolean isDebug) | void | writeEnableFlags(PrintWriter writer, Hashtable env) | public void | writeExtraFlags(PrintWriter writer, Vector extra) | public void | writeFileIfNecessary(byte data, String outfile) | void | writeFlag(PrintWriter writer, Hashtable env, EnableFlag flag) | void | writeOptionDump(PrintWriter writer) Writes the names and values of the flags into a table, so that
it's easy for C code to dump the values of the flags (for debugging
purposes). | void | writePlatformFlags(PrintWriter writer) | void | writeValue(PrintWriter writer, String name, FlagValue value) |
ALWAYS_DISABLE | final static int ALWAYS_DISABLE(Code) | | |
ALWAYS_ENABLE | final static int ALWAYS_ENABLE(Code) | | |
DISABLE | final static int DISABLE(Code) | | |
ENABLE | final static int ENABLE(Code) | | |
RELEASE_VERSION_KEY | final static String RELEASE_VERSION_KEY(Code) | | |
Configurator | public Configurator()(Code) | | |
addComments | void addComments(EnableFlag flag, String line)(Code) | | |
checkSpuriousFlags | void checkSpuriousFlags(Hashtable env)(Code) | | Print a warning if an unknown ENABLE_XXX flag is specified in the
env. This is probably a typo by the user.
|
getDefault | int getDefault(char c)(Code) | | |
readInputFile | public void readInputFile(String infile) throws Exception(Code) | | Read input from infile (usually BuildFlags.hpp)
|
readPlatformFile | public void readPlatformFile(String infile) throws Exception(Code) | | Read input from platform file, which usually have contents like:
os_family = linux
arch = i386
carch = thumb2
iarch = c
os_arch = linux_i386
compiler = gcc
cpu_variant =
|
write | public void write(String outfile, Hashtable env, Vector extra) throws Exception(Code) | | Write the output file. The env hashtable allows the user to specify
alternative values for the configuration flags.
|
writeOptionDump | void writeOptionDump(PrintWriter writer)(Code) | | Writes the names and values of the flags into a table, so that
it's easy for C code to dump the values of the flags (for debugging
purposes).
|
|
|