public abstract class WritableTypeRegistry extends TypeRegistry
| Constructor and Description |
|---|
WritableTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
registerConstant(TypeReference reference,
PValueProvider<?> value)
Register a constant value.
|
abstract void |
registerService(PService service)
Services are not handled as "declared types", so they need to be registered
separately.
|
abstract <T> void |
registerType(PDeclaredDescriptor<T> declaredType)
Register a declared type.
|
abstract void |
registerTypedef(TypeReference reference,
TypeReference target)
Registers a typedef definition.
|
finalTypeReference, getConstantValue, getDeclaredType, getDeclaredTypes, getService, getServiceProvider, getTypedef, getTypeProvider, getTypeProvider, isKnownProgram, requireDeclaredType, requireEnumType, requireMessageType, requireServicepublic abstract void registerConstant(@Nonnull TypeReference reference, @Nonnull PValueProvider<?> value)
reference - The constant reference.value - The constant value.public abstract void registerService(@Nonnull PService service)
service - the service to register.public abstract <T> void registerType(PDeclaredDescriptor<T> declaredType)
T - The declared java type.declaredType - The descriptor for the type.public abstract void registerTypedef(@Nonnull TypeReference reference, @Nonnull TypeReference target)
reference - The typedef reference source..target - The qualified type definition that the name represents
with it's own context.Copyright © 2015–2020 morimekta.net. All rights reserved.