|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended byptolemy.copernicus.c.Context
A class that maintains context information for C code generation.
| Constructor Summary | |
Context()
Construct an empty context. |
|
| Method Summary | |
void |
addArrayInstance(java.lang.String instanceName)
Add an array instance to the set of array instances in the context. |
void |
addArrayInstances(java.util.Collection instances)
Add an entire collection of array instances. |
void |
addIncludeFile(java.lang.String fileName)
Add an include file to the set of include files in the context. |
void |
clear()
Reset the context to be empty. |
void |
clearDisableImports()
Enable importing of referenced include files. |
java.util.HashSet |
getArrayInstances()
Return an the set of array Instance names in the context. |
boolean |
getDisableImports()
Return true if and only if importing of referenced include files is presently disabled. |
java.lang.String |
getIdentifier(java.lang.String constant)
Return the C identifier that corresponds to a string constant in this context. |
java.util.Iterator |
getIncludeFiles()
Return an Iterator over the set of include files in the context. |
static boolean |
getSingleClassMode()
Return true if and only if single class mode translation is presently enabled. |
java.util.Iterator |
getStringConstants()
Return an Iterator over the set of string constants in the context. |
java.lang.String |
newStringConstant(java.lang.String value)
Add a new string constant to the pool of string constants if the string does not already exist in the pool. |
void |
setDisableImports()
Disable importing of referenced include files. |
static void |
setSingleClassMode()
Turn on (enable) single class mode translation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Context()
| Method Detail |
public void addArrayInstance(java.lang.String instanceName)
instanceName - The name of the array instance.public void addArrayInstances(java.util.Collection instances)
instances - The collection of array instances.public void addIncludeFile(java.lang.String fileName)
fileName - The name of the include file.public void clear()
public void clearDisableImports()
public java.util.HashSet getArrayInstances()
public boolean getDisableImports()
setDisableImports()public java.lang.String getIdentifier(java.lang.String constant)
constant - The string constant.
public java.util.Iterator getIncludeFiles()
public static boolean getSingleClassMode()
setSingleClassMode()public java.util.Iterator getStringConstants()
public java.lang.String newStringConstant(java.lang.String value)
value - The string constant.
public void setDisableImports()
getDisableImports()public static void setSingleClassMode()
getSingleClassMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||