|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.copernicus.c.Options
public class Options
A class that keeps track of compiler options. All options are stored as key-value string pairs. Possible options are:
verbose
true/false Turns verbose mode on or off.
compileMode
singleClass compiles only the given class,
full generates all required files.
pruneLevel
0 no code pruning done.
1 Code Pruning done by CallGraphPruner.
vta
true/false Whether or not to perform Variable Type Analysis.
lib
stores the path to the directory where library of generated files is
stored.
gcDir
stores the path to the directory containing the garbage collector. Not
using this option turns the collector off.
target
C6000 The TMS320C6xxx series of processors.
The target platform. A blank refers to a generic unix-like system. This
includes Cygwin installations on windows.
runtimeDir
The path to the runtime directory.
ptII
The path to the ptII directory.
compulsoryMethods
A semicolon-separated list of methods for which code must always be generated.
If more than one such entity is to be specified, the entire list may be
enclosed within double quotes. The complete method subsignature of the form
returnType class.method(arg1, arg2 ... )must be specified.
cFlags
The GCC flags to be used in the makefile.
reportEntities
true/false whether to output a summary of the number of classes,
methods and fields (entities) generated.
| Red (ssb) |
| Red (ankush) |
| Constructor Summary | |
|---|---|
Options()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String key)
Get the value corresponding to a key from the options table. |
boolean |
getBoolean(java.lang.String key)
Get a boolean value corresponding to a given key. |
int |
getInt(java.lang.String key)
Get the integer value corresponding to a given key. |
static boolean |
isValidFlag(java.lang.String string)
Checks if a given string is a valid option flag. |
static boolean |
isValidOption(java.lang.String string)
Checks if a given string is a valid Option. |
void |
put(java.lang.String key,
java.lang.String value)
Put a key-value pair into the options table. |
java.lang.String |
toString()
Convert the option table to a String. |
static Options |
v()
Return a static version of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Options()
| Method Detail |
|---|
public java.lang.String get(java.lang.String key)
key - The name of the option to be looked up.
public boolean getBoolean(java.lang.String key)
key - The name of the option to be looked up.
java.lang.RuntimeException - If a lookup of a value that is not
"true" or "false" occurs.public int getInt(java.lang.String key)
key - The name of the option to be looked up.
public static boolean isValidOption(java.lang.String string)
string - The string to be checked.
public static boolean isValidFlag(java.lang.String string)
string - The string to be checked.
public void put(java.lang.String key,
java.lang.String value)
key - The name of the option to be set.value - The value assigned to this option.public java.lang.String toString()
toString in class java.lang.Objectpublic static Options v()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||