Package org.smtlib.sexpr
Class Factory
java.lang.Object
org.smtlib.sexpr.Factory
- All Implemented Interfaces:
IParser.IFactory
This is the factory for classes that are part of this particular concrete representation
of SMT-LIB syntax: Parser, Printer, Source for parsers.
- Author:
- David R. Cok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateParser(SMT.Configuration smtConfig, ISource source) Creates a parser that reads and parses concrete syntax from the given sourcecreatePrinter(SMT.Configuration smtConfig, Writer w) Creates a printercreateSource(CharSequence cs, String location) Creates a character source from the given CharSequence; the second argument is just to be used as a location designator.createSource(SMT.Configuration smtConfig, File file) Creates a character source from the given filecreateSource(SMT.Configuration smtConfig, InputStream file, Object location) Creates a character source from the given streamstatic voidinitFactories(SMT.Configuration config) This method will initialize the factories and default printer in the configuration with appropriate objects from this implementation; it should be called as part of initial set up of the configuration.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
createParser
Description copied from interface:IParser.IFactoryCreates a parser that reads and parses concrete syntax from the given source- Specified by:
createParserin interfaceIParser.IFactory
-
createSource
Description copied from interface:IParser.IFactoryCreates a character source from the given CharSequence; the second argument is just to be used as a location designator.- Specified by:
createSourcein interfaceIParser.IFactory
-
createSource
Description copied from interface:IParser.IFactoryCreates a character source from the given file- Specified by:
createSourcein interfaceIParser.IFactory- Throws:
FileNotFoundException
-
createSource
Description copied from interface:IParser.IFactoryCreates a character source from the given stream- Specified by:
createSourcein interfaceIParser.IFactory
-
createPrinter
Description copied from interface:IParser.IFactoryCreates a printer- Specified by:
createPrinterin interfaceIParser.IFactory
-
initFactories
This method will initialize the factories and default printer in the configuration with appropriate objects from this implementation; it should be called as part of initial set up of the configuration.
-