public class DefinitionRepository extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DefinitionRepository.WithRepo |
public static final DefinitionRepository getRepository()
Function or a Callable.
So, when this method is used from within a call to Definition.withRepository(repo).call(...) it will return the value of
repo instead of the Singleton intance.
The same goes for Definition.withNewRepository(repo -> { ... }).public static DefinitionRepository createRepository()
public static DefinitionRepository.WithRepo withRepository(DefinitionRepository repository)
public static DefinitionRepository.WithRepo withNewRepository()
public void registerIfAbsent(TypeDef definition)
public TypeDef register(TypeDef definition, AttributeKey<Boolean>... flags)
public Set<TypeDef> getDefinitions(AttributeKey<Boolean>... attributeKeys)
public boolean hasDefinition(String fullyQualifiedName)
public Collection<TypeDef> getDefinitions()
public void updateReferenceMap()
public void clear()
Copyright © 2023. All rights reserved.