Modifier and Type | Class and Description |
---|---|
static interface |
require.DeclSetMapper |
Constructor and Description |
---|
require() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
find(java.lang.String typeName) |
static boolean |
importDefinitions(java.lang.String className,
ModuleInfo info,
require.DeclSetMapper mapper,
Translator.FormStack forms,
ScopeExp defs,
Compilation tr)
Import a module with a known source path.
|
static ModuleInfo |
lookupModuleFromSourcePath(java.lang.String sourceName,
ScopeExp defs) |
static java.lang.String |
mapFeature(java.lang.String featureName) |
Expression |
rewriteForm(Pair form,
Translator tr) |
boolean |
scanForDefinitions(Pair st,
ScopeExp defs,
Translator tr)
Check if a statement is a definition, for initial pass.
|
public static final require require
public static java.lang.String mapFeature(java.lang.String featureName)
public static java.lang.Object find(java.lang.String typeName)
public boolean scanForDefinitions(Pair st, ScopeExp defs, Translator tr)
Syntax
scanForDefinitions
in class Syntax
st
- the statement to checkdefs
- where to add Declarations for found definitionstr
- the compilation statepublic static ModuleInfo lookupModuleFromSourcePath(java.lang.String sourceName, ScopeExp defs)
public static boolean importDefinitions(java.lang.String className, ModuleInfo info, require.DeclSetMapper mapper, Translator.FormStack forms, ScopeExp defs, Compilation tr)
className
- Optional fully-qualified name of module's class,
or null if unknown.public Expression rewriteForm(Pair form, Translator tr)
rewriteForm
in class Syntax