public class SimpleTypeRegistry extends BaseTypeRegistry
| Constructor and Description |
|---|
SimpleTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getConstantValue(String constReference,
String programContext)
This is to check to find a constant given the const name and program context.
|
<T extends PDeclaredDescriptor<T>> |
getDeclaredType(String typeName,
String programContext)
Get the declared type with the given name and program context.
|
PService |
getService(String serviceName,
String programContext)
Get a service definition from the name and program context.
|
<T> boolean |
register(PDeclaredDescriptor<T> declaredType)
Register a declared type.
|
boolean |
register(PService service)
Services are not handled as "declared types", so they need to be registered
separately.
|
void |
registerConstant(String identifier,
String program,
Object value)
Register a constant value.
|
finalTypename, getProvider, getServiceProvider, qualifiedNameFromIdAndContext, registerRecursively, registerRecursively, registerTypedefclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeclaredType, getEnumType, getMessageType, getService@Nonnull public <T extends PDeclaredDescriptor<T>> T getDeclaredType(@Nonnull String typeName, @Nonnull String programContext)
TypeRegistryT - The described type.typeName - The type name.programContext - The program context of the type.@Nullable public <T> T getConstantValue(@Nonnull String constReference, @Nonnull String programContext)
TypeRegistryT - The returned value type.constReference - The reference to the constant.programContext - The current program context.@Nonnull public PService getService(String serviceName, String programContext)
TypeRegistryserviceName - The service name.programContext - The program context name to get the service in.public void registerConstant(@Nonnull String identifier, @Nonnull String program, @Nonnull Object value)
WritableTypeRegistryidentifier - The constant identifier name.program - The program context for the constant.value - The parsed value.public boolean register(@Nonnull PService service)
WritableTypeRegistryservice - the service to register.public <T> boolean register(PDeclaredDescriptor<T> declaredType)
WritableTypeRegistryT - The declared java type.declaredType - The descriptor for the type.Copyright © 2015–2019 morimekta.net. All rights reserved.