public class ProgramRegistry extends TypeRegistry
| Constructor and Description |
|---|
ProgramRegistry() |
| Modifier and Type | Method and Description |
|---|---|
CProgram |
getDocument(String path)
Gets the document for a given file path.
|
CProgram |
getDocumentForPackage(String packageContext) |
PDescriptorProvider |
getProvider(String name,
String context,
Map<String,String> annotations)
Given a type name and a package context, fetches the type provider for the given type.
|
PServiceProvider |
getServiceProvider(String serviceName,
String packageContext) |
boolean |
putDocument(String path,
CProgram doc)
Puts the given document into the registry.
|
finalTypename, getDeclaredType, getDeclaredType, getService, putDeclaredType, putService, putTypedef, registerRecursivelypublic boolean putDocument(String path, CProgram doc)
path - File path the document was found.doc - The contained document.public CProgram getDocument(String path)
path - The file path.public PDescriptorProvider getProvider(String name, String context, Map<String,String> annotations)
name - Name of type, without any spaces.context - The package context of the type.annotations - Annotations on the type.public PServiceProvider getServiceProvider(String serviceName, String packageContext)
Copyright © 2015–2017 morimekta.net. All rights reserved.