| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.llnl.babel.backend.sidl.ScopedName
public class ScopedName
When generating SIDL from the information stored in the Symbol table, it
 does not know what symbols where given as fully qualified names (fqn) and
 what symbols where given as short names using an import or the current
 scope to shorten the name. This class tries to provide a reasonable set
 of require statements to give a meaningful file.
| Field Summary | |
|---|---|
| static char | s_delimThe delimiter used to separate the symbol and version in require entry keys. | 
| Method Summary | |
|---|---|
| static java.lang.String | getScopedName(java.lang.String currentScope,
              java.lang.String fullyQualifiedName)Generate the scope sensitive name for a symbol. | 
| static void | printRequires(Context context,
              Package pkg,
              LanguageWriter lw)Build then print the require statements associated with the package. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static char s_delim
| Method Detail | 
|---|
public static void printRequires(Context context,
                                 Package pkg,
                                 LanguageWriter lw)
pkg - the package whose requires list is to be builtlw - the language writer to which the requires are to be written
public static java.lang.String getScopedName(java.lang.String currentScope,
                                             java.lang.String fullyQualifiedName)
requires list and the current scope.
currentScope - this is name of the scope in which you are writing.
                     For example, if you're writing the package
                     gov.cca, you would pass in "gov.cca".fullyQualifiedName - you want the short name for this fully
                          qualified name in the current scope and
                          given a set of require statements
                          printed at the beginning of the file.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||