public class ImmutableCodeStore extends BaseCodeStore
CODE_EXTENSIONS, instance, moduleDbIds| Constructor and Description |
|---|
ImmutableCodeStore(ICodeStore next,
ModuleType type,
URL resource,
PromptoVersion version) |
fetchLatestResource, getNext, setMainModule, setNext, upgradeIfRequiredclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddModuleDbId, dialectFromResourceName, fetchApplication, fetchAttributeInfo, fetchBatch, fetchLibrary, fetchScript, fetchService, fetchThesaurus, getInstance, getModuleDbIds, parse, parse, parserForDialect, setInstancepublic ImmutableCodeStore(ICodeStore next, ModuleType type, URL resource, PromptoVersion version)
public static ICodeStore bootstrapRuntime(java.util.function.Supplier<Collection<URL>> runtimeSupplier)
public ModuleType getModuleType()
public Dialect getModuleDialect()
public String getModuleName()
public PromptoVersion getModuleVersion()
public void storeModule(Module module) throws PromptoError
PromptoErrorpublic void dropModule(Module module)
public void storeDependency(Dependency dependency)
public <T extends Module> T fetchModule(ModuleType type, String name, PromptoVersion version) throws PromptoError
PromptoErrorprotected Module fetchModule(String name, PromptoVersion version)
fetchModule in class BaseCodeStorepublic Iterable<Module> fetchAllModules() throws PromptoError
PromptoErrorpublic Object fetchModuleDbId(String name, PromptoVersion version) throws PromptoError
PromptoErrorpublic Resource fetchSpecificResource(String path, PromptoVersion version)
fetchSpecificResource in interface ICodeStorefetchSpecificResource in class BaseCodeStorepublic void storeDeclarations(Iterable<IDeclaration> declarations, Dialect dialect, PromptoVersion version, Object moduleId) throws PromptoError
PromptoErrorpublic Iterable<IDeclaration> fetchLatestDeclarations(String name) throws PromptoError
fetchLatestDeclarations in interface ICodeStorefetchLatestDeclarations in class BaseCodeStorePromptoErrorpublic Iterable<IDeclaration> fetchSpecificDeclarations(String name, PromptoVersion version) throws PromptoError
fetchSpecificDeclarations in interface ICodeStorefetchSpecificDeclarations in class BaseCodeStorePromptoErrorpublic IDeclaration fetchLatestSymbol(String name) throws PromptoError
fetchLatestSymbol in interface ICodeStorefetchLatestSymbol in class BaseCodeStorePromptoErrorpublic IDeclaration fetchSpecificSymbol(String name, PromptoVersion version) throws PromptoError
fetchSpecificSymbol in interface ICodeStorefetchSpecificSymbol in class BaseCodeStorePromptoErrorpublic Collection<CategoryDeclaration> fetchDerivedCategoryDeclarations(Identifier id)
fetchDerivedCategoryDeclarations in interface ICodeStorefetchDerivedCategoryDeclarations in class BaseCodeStorepublic ISection findSection(ISection section)
findSection in interface ICodeStorefindSection in class BaseCodeStorepublic Iterable<IDeclaration> getDeclarations()
public void collectStorableAttributes(Map<String,AttributeDeclaration> columns) throws PromptoError
collectStorableAttributes in interface ICodeStorecollectStorableAttributes in class BaseCodeStorePromptoErrorpublic Collection<String> fetchDeclarationNames()
fetchDeclarationNames in interface ICodeStorefetchDeclarationNames in class BaseCodeStoreCopyright © 2020 Prompto. All rights reserved.