public class TypeRegistry extends Object
| Constructor and Description |
|---|
TypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T extends PDeclaredDescriptor<T>> |
getDescriptor(String name,
String packageContext)
Get the declared type with the name and package context.
|
CDocument |
getDocument(String path)
Gets the document for a given file path.
|
CDocument |
getDocumentForPackage(String packageContext) |
PDescriptorProvider |
getProvider(String typeName,
String packageContext)
Given a type name and a package context, fetches the type provider for the given type.
|
PServiceProvider |
getServiceProvider(String serviceName,
String packageContext) |
<T> void |
putDeclaredType(PDeclaredDescriptor<T> declaredType)
Put a declared type into the registry.
|
boolean |
putDocument(String path,
CDocument doc)
Puts the given document into the registry.
|
void |
putService(PService service) |
void |
putTypedef(String typeName,
String identifier)
Registers a typedef definition.
|
public boolean putDocument(String path, CDocument doc)
path - File path the document was found.doc - The contained document.public CDocument getDocument(String path)
path - The file path.public <T extends PDeclaredDescriptor<T>> T getDescriptor(String name, String packageContext)
T - The described type.name - Name of type, without any spaces.packageContext - The package context of the type.public <T> void putDeclaredType(PDeclaredDescriptor<T> declaredType)
T - The descriptor object type.declaredType - The type to register.public void putTypedef(String typeName, String identifier)
typeName - The typedef name to put.identifier - The qualified name that the name represents.public PDescriptorProvider getProvider(String typeName, String packageContext)
typeName - Name of type, without any spaces.packageContext - The package context of the type.public void putService(PService service)
public PServiceProvider getServiceProvider(String serviceName, String packageContext)
Copyright © 2016. All rights reserved.