public interface QuerySerializerFactory
SerializerRegistry
thus allowing the serialization of queries to be
customisedModifier and Type | Method and Description |
---|---|
boolean |
accept(Syntax syntax)
Return true if this factory can create a serializer for the given syntax
|
QueryVisitor |
create(Syntax syntax,
Prologue prologue,
IndentedWriter writer)
Return a serializer for the given syntax
|
QueryVisitor |
create(Syntax syntax,
SerializationContext context,
IndentedWriter writer)
Returns a serializer for the given syntax using an existing serialization
context, this method should only be called for serializing sub-queries
where the outer context must be honoured
|
boolean accept(Syntax syntax)
QueryVisitor create(Syntax syntax, Prologue prologue, IndentedWriter writer)
syntax
- Syntaxprologue
- Prologuewriter
- WriterQueryVisitor create(Syntax syntax, SerializationContext context, IndentedWriter writer)
syntax
- Syntaxcontext
- Serialization Contextwriter
- WriterLicenced under the Apache License, Version 2.0