Package kawa.standard
Class require
java.lang.Object
kawa.lang.Syntax
kawa.standard.require
- All Implemented Interfaces:
gnu.kawa.format.Printable
,Named
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
static boolean
importDefinitions
(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
(String sourceName, ScopeExp defs) static String
mapFeature
(String featureName) rewriteForm
(Pair form, Translator tr) boolean
scanForDefinitions
(Pair st, ScopeExp defs, Translator tr) Check if a statement is a definition, for initial pass.
-
Field Details
-
require
-
-
Constructor Details
-
require
public require()
-
-
Method Details
-
mapFeature
-
find
-
scanForDefinitions
Description copied from class:Syntax
Check if a statement is a definition, for initial pass. Semi-deprecated - should convert calls to use scanForm.- Overrides:
scanForDefinitions
in classSyntax
- Parameters:
st
- the statement to checkdefs
- where to add Declarations for found definitionstr
- the compilation state- Returns:
- true on success
-
lookupModuleFromSourcePath
-
importDefinitions
public static boolean importDefinitions(String className, ModuleInfo info, require.DeclSetMapper mapper, Translator.FormStack forms, ScopeExp defs, Compilation tr) Import a module with a known source path.- Parameters:
className
- Optional fully-qualified name of module's class, or null if unknown.
-
rewriteForm
- Overrides:
rewriteForm
in classSyntax
-