Class TypeNameRegistry
- Namespace
- TypedRest.CodeGeneration.Jvm
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
Keeps track of the type names handed out during a generation run, so that no two generated types end up in the same file.
public class TypeNameRegistry
- Inheritance
-
objectTypeNameRegistry
Methods
Register(IEnumerable<JvmIdentifier>)
Registers the first of the candidates that is still free.
Falls back to appending a number to the last candidate if all of them are taken.
public JvmIdentifier Register(IEnumerable<JvmIdentifier> candidates)
Parameters
candidatesIEnumerable<JvmIdentifier>
Returns
Register(JvmIdentifier)
Registers a name for a type, appending a number if it is already taken.
public JvmIdentifier Register(JvmIdentifier candidate)
Parameters
candidateJvmIdentifier