public class ScopedName
extends java.lang.Object
require
statements to give a meaningful file.Modifier and Type | Field and Description |
---|---|
static char |
s_delim
The delimiter used to separate the symbol and version in require entry
keys.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static char s_delim
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 writtenpublic 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.