Class DefaultSubstitutionFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultSubstitutionFactory
- All Implemented Interfaces:
SubstitutionFactory
Default singleton implementation of
SubstitutionFactory.- Author:
- Clément Sipieter (INRIA) clement@6pi.fr
-
Method Summary
Modifier and TypeMethodDescriptionCreates an empty substitution.Creates a copy of the provided substitution.static DefaultSubstitutionFactoryinstance()Returns the shared substitution factory instance.
-
Method Details
-
instance
Returns the shared substitution factory instance.- Returns:
- the shared instance
-
createSubstitution
Creates an empty substitution.- Specified by:
createSubstitutionin interfaceSubstitutionFactory- Returns:
- the created substitution
-
createSubstitution
Creates a copy of the provided substitution.- Specified by:
createSubstitutionin interfaceSubstitutionFactory- Parameters:
s- the substitution to copy- Returns:
- the created substitution
-