Class DefaultConstantGenerator
java.lang.Object
fr.lirmm.graphik.integraal.core.DefaultConstantGenerator
- All Implemented Interfaces:
ConstantGenerator, TermGenerator
Generate fresh variables by appending an incremental counter to the specified
prefix.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConstantGenerator(String prefix) Creates a generator using the given identifier prefix. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a fresh constant, i.e. a constant which does not already exist.
-
Constructor Details
-
DefaultConstantGenerator
Creates a generator using the given identifier prefix.- Parameters:
prefix- the prefix used for generated constants
-
-
Method Details
-
getFreshSymbol
Description copied from interface:ConstantGeneratorGenerate a fresh constant, i.e. a constant which does not already exist.- Specified by:
getFreshSymbolin interfaceConstantGenerator- Specified by:
getFreshSymbolin interfaceTermGenerator- Returns:
- a fresh Constant.
-