public class ProgramRegistry
extends net.morimekta.providence.types.WritableTypeRegistry
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
getConstantValue(net.morimekta.providence.types.TypeReference reference) |
Optional<net.morimekta.providence.descriptor.PDeclaredDescriptor<?>> |
getDeclaredType(net.morimekta.providence.types.TypeReference reference) |
List<net.morimekta.providence.descriptor.PDeclaredDescriptor<?>> |
getDeclaredTypes() |
CProgram |
getProgram() |
String |
getProgramContext() |
ProgramDeclaration |
getProgramType() |
Optional<ProgramRegistry> |
getRegistry(String program) |
Optional<net.morimekta.providence.descriptor.PService> |
getService(net.morimekta.providence.types.TypeReference reference) |
Optional<net.morimekta.providence.types.TypeReference> |
getTypedef(net.morimekta.providence.types.TypeReference reference) |
boolean |
isKnownProgram(String program) |
void |
registerConstant(net.morimekta.providence.types.TypeReference reference,
net.morimekta.providence.descriptor.PValueProvider<?> value) |
void |
registerService(net.morimekta.providence.descriptor.PService service) |
<T> void |
registerType(net.morimekta.providence.descriptor.PDeclaredDescriptor<T> declaredType) |
void |
registerTypedef(net.morimekta.providence.types.TypeReference reference,
net.morimekta.providence.types.TypeReference target) |
public String getProgramContext()
public CProgram getProgram()
public ProgramDeclaration getProgramType()
@Nonnull public Optional<ProgramRegistry> getRegistry(@Nonnull String program)
@Nonnull public Optional<net.morimekta.providence.descriptor.PDeclaredDescriptor<?>> getDeclaredType(@Nonnull net.morimekta.providence.types.TypeReference reference)
getDeclaredType in class net.morimekta.providence.types.TypeRegistry@Nonnull public Optional<net.morimekta.providence.descriptor.PService> getService(@Nonnull net.morimekta.providence.types.TypeReference reference)
getService in class net.morimekta.providence.types.TypeRegistry@Nonnull public <T> Optional<T> getConstantValue(@Nonnull net.morimekta.providence.types.TypeReference reference)
getConstantValue in class net.morimekta.providence.types.TypeRegistry@Nonnull public Optional<net.morimekta.providence.types.TypeReference> getTypedef(@Nonnull net.morimekta.providence.types.TypeReference reference)
getTypedef in class net.morimekta.providence.types.TypeRegistrypublic List<net.morimekta.providence.descriptor.PDeclaredDescriptor<?>> getDeclaredTypes()
getDeclaredTypes in class net.morimekta.providence.types.TypeRegistrypublic boolean isKnownProgram(@Nonnull String program)
isKnownProgram in class net.morimekta.providence.types.TypeRegistrypublic void registerTypedef(@Nonnull net.morimekta.providence.types.TypeReference reference, @Nonnull net.morimekta.providence.types.TypeReference target)
registerTypedef in class net.morimekta.providence.types.WritableTypeRegistrypublic <T> void registerType(net.morimekta.providence.descriptor.PDeclaredDescriptor<T> declaredType)
registerType in class net.morimekta.providence.types.WritableTypeRegistrypublic void registerService(@Nonnull net.morimekta.providence.descriptor.PService service)
registerService in class net.morimekta.providence.types.WritableTypeRegistryCopyright © 2015–2020 morimekta.net. All rights reserved.