public class QueryableCodeStore extends BaseCodeStore
CODE_EXTENSIONS, instance, moduleDbIds| Constructor and Description |
|---|
QueryableCodeStore(IStore store,
ICodeStore runtime,
String application,
PromptoVersion version,
URL[] addOns,
URL... resourceNames) |
fetchLatestDeclarations, fetchLatestResource, fetchLatestSymbol, findSection, getNext, setMainModule, setNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddModuleDbId, dialectFromResourceName, fetchApplication, fetchAttributeInfo, fetchBatch, fetchLibrary, fetchScript, fetchService, fetchThesaurus, getInstance, getModuleDbIds, parse, parse, parserForDialect, setInstancepublic QueryableCodeStore(IStore store, ICodeStore runtime, String application, PromptoVersion version, URL[] addOns, URL... resourceNames) throws PromptoError
PromptoErrorpublic IStore getStore()
public void setStore(IStore store)
public void collectStorables(List<IStorable> list, IDeclaration declaration, Dialect dialect, PromptoVersion version, Object moduleId)
public ModuleType getModuleType()
public Dialect getModuleDialect()
public String getModuleName()
public PromptoVersion getModuleVersion()
public void storeModule(Module module) throws PromptoError
PromptoErrorpublic void storeDependency(Dependency dependency)
public void dropModule(Module module)
public Iterable<Module> fetchAllModules() throws PromptoError
PromptoErrorpublic <T extends Module> T fetchModule(ModuleType type, String name, PromptoVersion version) throws PromptoError
PromptoErrorpublic Module fetchModule(String name, PromptoVersion version) throws PromptoError
fetchModule in class BaseCodeStorePromptoErrorpublic Object fetchModuleDbId(String name, PromptoVersion version) throws PromptoError
PromptoErrorpublic Resource fetchSpecificResource(String name, PromptoVersion version)
fetchSpecificResource in interface ICodeStorefetchSpecificResource in class BaseCodeStorepublic Collection<String> fetchDeclarationNames()
fetchDeclarationNames in interface ICodeStorefetchDeclarationNames in class BaseCodeStorepublic Iterable<IDeclaration> fetchSpecificDeclarations(String name, PromptoVersion version) throws PromptoError
fetchSpecificDeclarations in interface ICodeStorefetchSpecificDeclarations 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 void storeDeclarations(Iterable<IDeclaration> declarations, Dialect dialect, PromptoVersion version, Object moduleId) throws PromptoError
PromptoErrorpublic void collectStorableAttributes(Map<String,AttributeDeclaration> map) throws PromptoError
collectStorableAttributes in interface ICodeStorecollectStorableAttributes in class BaseCodeStorePromptoErrorpublic void upgradeIfRequired()
upgradeIfRequired in interface ICodeStoreupgradeIfRequired in class BaseCodeStoreCopyright © 2020 Prompto. All rights reserved.