public abstract class SerializerBase<S extends SerializerBase<S>> extends java.lang.Object implements Visitor<java.lang.Void,java.lang.Void>
Constructor and Description |
---|
SerializerBase(Templates templates) |
Modifier and Type | Method and Description |
---|---|
S |
append(java.lang.String str) |
protected java.lang.String |
getConstantPrefix() |
java.util.Map<java.lang.Object,java.lang.String> |
getConstantToLabel() |
int |
getLength() |
protected Template |
getTemplate(Operator<?> op) |
S |
handle(Expression<?> expr) |
S |
handle(JoinFlag joinFlag) |
S |
handle(java.lang.Object arg) |
S |
handle(java.lang.String sep,
Expression<?>[] expressions) |
S |
handle(java.lang.String sep,
java.util.List<?> expressions) |
protected void |
handleTemplate(Template template,
java.util.List<?> args) |
S |
insert(int position,
java.lang.String str) |
S |
prepend(java.lang.String str) |
boolean |
serialize(JoinFlag.Position position,
java.util.Set<JoinFlag> flags) |
boolean |
serialize(QueryFlag.Position position,
java.util.Set<QueryFlag> flags) |
void |
setAnonParamPrefix(java.lang.String prefix) |
void |
setConstantPrefix(java.lang.String prefix) |
void |
setNormalize(boolean normalize) |
void |
setParamPrefix(java.lang.String prefix) |
void |
setStrict(boolean strict) |
java.lang.String |
toString() |
java.lang.Void |
visit(Constant<?> expr,
java.lang.Void context) |
java.lang.Void |
visit(FactoryExpression<?> expr,
java.lang.Void context) |
java.lang.Void |
visit(Operation<?> expr,
java.lang.Void context) |
java.lang.Void |
visit(ParamExpression<?> param,
java.lang.Void context) |
java.lang.Void |
visit(Path<?> path,
java.lang.Void context) |
java.lang.Void |
visit(TemplateExpression<?> expr,
java.lang.Void context) |
void |
visitConstant(java.lang.Object constant) |
protected void |
visitOperation(java.lang.Class<?> type,
Operator<?> operator,
java.util.List<? extends Expression<?>> args) |
public SerializerBase(Templates templates)
public final S prepend(java.lang.String str)
public final S insert(int position, java.lang.String str)
public final S append(java.lang.String str)
protected java.lang.String getConstantPrefix()
public java.util.Map<java.lang.Object,java.lang.String> getConstantToLabel()
public int getLength()
public final S handle(Expression<?> expr)
public final S handle(java.lang.Object arg)
public final S handle(java.lang.String sep, Expression<?>[] expressions)
public final S handle(java.lang.String sep, java.util.List<?> expressions)
protected void handleTemplate(Template template, java.util.List<?> args)
public final boolean serialize(QueryFlag.Position position, java.util.Set<QueryFlag> flags)
public final boolean serialize(JoinFlag.Position position, java.util.Set<JoinFlag> flags)
public void setConstantPrefix(java.lang.String prefix)
public void setParamPrefix(java.lang.String prefix)
public void setAnonParamPrefix(java.lang.String prefix)
public void setNormalize(boolean normalize)
public void setStrict(boolean strict)
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.Void visit(Constant<?> expr, java.lang.Void context)
public void visitConstant(java.lang.Object constant)
public java.lang.Void visit(ParamExpression<?> param, java.lang.Void context)
public java.lang.Void visit(TemplateExpression<?> expr, java.lang.Void context)
public java.lang.Void visit(FactoryExpression<?> expr, java.lang.Void context)
public java.lang.Void visit(Operation<?> expr, java.lang.Void context)
public java.lang.Void visit(Path<?> path, java.lang.Void context)
protected void visitOperation(java.lang.Class<?> type, Operator<?> operator, java.util.List<? extends Expression<?>> args)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.