Class CBBinderFactory
java.lang.Object
com.io7m.cedarbridge.schema.binder.CBBinderFactory
- All Implemented Interfaces:
CBBinderFactoryType
The binder factory implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a binder factoryCBBinderFactory(CBStringsType inStrings) Construct a binder factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateBinder(CBLoaderType loader, Consumer<CBError> errors, CBExpressionLineLogType lineLog, CBASTPackage parsedPackage) Create a binder.
-
Constructor Details
-
CBBinderFactory
Construct a binder factory.- Parameters:
inStrings- String resources
-
CBBinderFactory
public CBBinderFactory()Construct a binder factory
-
-
Method Details
-
createBinder
public CBBinderType createBinder(CBLoaderType loader, Consumer<CBError> errors, CBExpressionLineLogType lineLog, CBASTPackage parsedPackage) Description copied from interface:CBBinderFactoryTypeCreate a binder.- Specified by:
createBinderin interfaceCBBinderFactoryType- Parameters:
loader- A package loadererrors- A receiver of binder errorslineLog- A line log, for diagnostic messagesparsedPackage- A parsed package- Returns:
- A new binder
-