public interface Imports extends ModuleResource
| Modifier and Type | Method and Description |
|---|---|
TypeLoader |
getTypeLoader()
Get associated type loader
|
void |
importModule(Module module)
Import module
|
void |
importModule(String name)
Import module using the given name
|
boolean |
importType(String name,
Type type)
Import reference
|
forClass, forName, requireType, requireTypevoid importModule(String name)
name - the name of modulevoid importModule(Module module)
module - the module to import
// @return if type with the given name is already imported, the method will interrupt importing and return the name of that typeboolean importType(String name, Type type)
name - the name of type to import as (may be different than type name)type - the reference to typeTypeLoader getTypeLoader()
Copyright © 2020. All rights reserved.