T - The type of the intermediate representation that can be converted into a stringpublic interface Printer<T>
YamlPrinter implements Printer<Yaml>, that would convert everything into a Yaml and define a method
to convert a Yaml into a String.| Modifier and Type | Method and Description |
|---|---|
String |
build(T builder)
Convert a builder into a string
|
default T |
graqlString(boolean inner,
Answer answer)
Convert any
Answer into a builder |
T |
graqlString(boolean inner,
boolean bool)
Convert any boolean into a builder
|
T |
graqlString(boolean inner,
Collection<?> collection)
Convert any collection into a builder
|
T |
graqlString(boolean inner,
Concept concept)
Convert any concept into a builder
|
T |
graqlString(boolean inner,
Map<?,?> map)
Convert any map into a builder
|
default T |
graqlString(boolean inner,
Object object)
Convert any object into a builder
|
T |
graqlString(boolean inner,
Optional<?> optional)
Convert any optional into a builder
|
default String |
graqlString(Object object)
Convert any object into a string
|
T |
graqlStringDefault(boolean inner,
Object object)
Default conversion behaviour if none of the more specific methods can be used
|
@CheckReturnValue default String graqlString(Object object)
object - the object to convert to a string@CheckReturnValue default T graqlString(boolean inner, Object object)
inner - whether this object is within a collectionobject - the object to convert into a builder@CheckReturnValue String build(T builder)
builder - the builder to convert into a string@CheckReturnValue T graqlString(boolean inner, Concept concept)
inner - whether this concept is within a collectionconcept - the concept to convert into a builder@CheckReturnValue T graqlString(boolean inner, boolean bool)
inner - whether this boolean is within a collectionbool - the boolean to convert into a builder@CheckReturnValue T graqlString(boolean inner, Optional<?> optional)
inner - whether this optional is within a collectionoptional - the optional to convert into a builder@CheckReturnValue T graqlString(boolean inner, Collection<?> collection)
inner - whether this collection is within a collectioncollection - the collection to convert into a builder@CheckReturnValue T graqlString(boolean inner, Map<?,?> map)
inner - whether this map is within a collectionmap - the map to convert into a builder@CheckReturnValue default T graqlString(boolean inner, Answer answer)
Answer into a builderinner - whether this map is within a collectionanswer - the answer to convert into a builder@CheckReturnValue T graqlStringDefault(boolean inner, Object object)
inner - whether this object is within a collectionobject - the object to convert into a builderCopyright © 2017 Grakn Labs Ltd. All rights reserved.