S
- concrete subtypepublic abstract class SerializerBase<S extends SerializerBase<S>> extends Object implements Visitor<Void,Void>
SerializerBase
is a stub for Serializer implementations which serialize query metadata to StringsConstructor and Description |
---|
SerializerBase(Templates templates) |
Modifier and Type | Method and Description |
---|---|
S |
append(String str) |
protected String |
getConstantPrefix() |
Map<Object,String> |
getConstantToLabel() |
protected int |
getLength() |
protected Template |
getTemplate(Operator op) |
S |
handle(Expression<?> expr) |
S |
handle(JoinFlag joinFlag) |
S |
handle(Object arg) |
S |
handle(String sep,
Expression<?>[] expressions) |
S |
handle(String sep,
List<? extends Expression<?>> expressions) |
protected void |
handleTemplate(Template template,
List<?> args) |
S |
insert(int position,
String str) |
S |
prepend(String str) |
boolean |
serialize(JoinFlag.Position position,
Set<JoinFlag> flags) |
boolean |
serialize(QueryFlag.Position position,
Set<QueryFlag> flags) |
void |
setAnonParamPrefix(String prefix) |
void |
setConstantPrefix(String prefix) |
void |
setNormalize(boolean normalize)
Deprecated.
normalization happens now at template level
|
void |
setParamPrefix(String prefix) |
void |
setStrict(boolean strict) |
String |
toString() |
Void |
visit(Constant<?> expr,
Void context)
Visit a Constant instance with the given context
|
Void |
visit(FactoryExpression<?> expr,
Void context)
Visit a FactoryExpression instance with the given context
|
Void |
visit(Operation<?> expr,
Void context)
Visit an Operation instance with the given context
|
Void |
visit(ParamExpression<?> param,
Void context)
Visit a ParamExpression instance with the given context
|
Void |
visit(Path<?> path,
Void context)
Visit a Path instance with the given context
|
Void |
visit(TemplateExpression<?> expr,
Void context)
Visit a TemplateExpression instance with the given context
|
void |
visitConstant(Object constant) |
protected void |
visitOperation(Class<?> type,
Operator operator,
List<? extends Expression<?>> args) |
public SerializerBase(Templates templates)
protected String getConstantPrefix()
protected int getLength()
public final S handle(Expression<?> expr)
public final S handle(String sep, Expression<?>[] expressions)
public final S handle(String sep, List<? extends Expression<?>> expressions)
public final boolean serialize(QueryFlag.Position position, Set<QueryFlag> flags)
public final boolean serialize(JoinFlag.Position position, Set<JoinFlag> flags)
public void setConstantPrefix(String prefix)
public void setParamPrefix(String prefix)
public void setAnonParamPrefix(String prefix)
@Deprecated public void setNormalize(boolean normalize)
public void setStrict(boolean strict)
public final Void visit(Constant<?> expr, Void context)
Visitor
public void visitConstant(Object constant)
public Void visit(ParamExpression<?> param, Void context)
Visitor
public Void visit(TemplateExpression<?> expr, Void context)
Visitor
public Void visit(FactoryExpression<?> expr, Void context)
Visitor
public Void visit(Operation<?> expr, Void context)
Visitor
public Void visit(Path<?> path, Void context)
Visitor
protected void visitOperation(Class<?> type, Operator operator, List<? extends Expression<?>> args)
Copyright © 2007–2016 Querydsl. All rights reserved.