Attributes
- Companion
- object
- Source
- NameGenerator.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class TipNameGenerator
Members list
Value members
Concrete methods
Creates a new name generator from this name generator.
Creates a new name generator from this name generator.
Attributes
- Returns
-
The new name generator does not generate any names that have so far been generated by this name generator, moreover it does not generate names that are contained in the initially used names of this name generator.
- Source
- NameGenerator.scala
Generates fresh names.
Generates fresh names.
Value parameters
- name
-
The name for which a fresh variant is to be generated.
Attributes
- Returns
-
Returns
nameifnamedoes not occur in the initially used names andnamehas not yet been generated by this name generator. Otherwise, a name of the formnameis returned, such that namehas not been generated by a previous call to this method. - Source
- NameGenerator.scala
Generates a stream of fresh variants.
Generates a stream of fresh variants.
Value parameters
- name
-
The name for which a stream of fresh variants is to be generated.
Attributes
- Returns
-
A stream of fresh variants of the form
name_. - Source
- NameGenerator.scala
Generates a fresh variant of a name.
Generates a fresh variant of a name.
Value parameters
- name
-
The name for which a fresh variant is to be generated.
Attributes
- Returns
-
Returns a name of the form
name_, such that this name has not been generated by any previous call to this name generator. - Source
- NameGenerator.scala
Generates a fresh variant of a name.
Generates a fresh variant of a name.
Value parameters
- baseName
-
The pattern based on which names are generated. For every distinct non-negative integers i and j,
baseName(i)andbaseName(j)must be distinct names.
Attributes
- Returns
-
A name of the form
baseName(n)that has not been generated by any previous call to this name generator and such thatnis the least non-negative integer with this property. Furthermore the subsequent names generated by this name generator will not includebaseName(n). - Source
- NameGenerator.scala