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 Objectstatic booleanimportDefinitions(String className, ModuleInfo info, require.DeclSetMapper mapper, Translator.FormStack forms, ScopeExp defs, Compilation tr) Import a module with a known source path.static ModuleInfolookupModuleFromSourcePath(String sourceName, ScopeExp defs) static StringmapFeature(String featureName) rewriteForm(Pair form, Translator tr) booleanscanForDefinitions(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:SyntaxCheck if a statement is a definition, for initial pass. Semi-deprecated - should convert calls to use scanForm.- Overrides:
scanForDefinitionsin 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:
rewriteFormin classSyntax
-