public class ReplaceDeParser extends Object implements ItemsListVisitor
Replace
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
buffer |
protected ExpressionVisitor |
expressionVisitor |
protected SelectVisitor |
selectVisitor |
Constructor and Description |
---|
ReplaceDeParser() |
ReplaceDeParser(ExpressionVisitor expressionVisitor,
SelectVisitor selectVisitor,
StringBuilder buffer) |
Modifier and Type | Method and Description |
---|---|
void |
deParse(Replace replace) |
StringBuilder |
getBuffer() |
ExpressionVisitor |
getExpressionVisitor() |
SelectVisitor |
getSelectVisitor() |
void |
setBuffer(StringBuilder buffer) |
void |
setExpressionVisitor(ExpressionVisitor visitor) |
void |
setSelectVisitor(SelectVisitor visitor) |
void |
visit(ExpressionList expressionList) |
void |
visit(MultiExpressionList multiExprList) |
void |
visit(SubSelect subSelect) |
protected StringBuilder buffer
protected ExpressionVisitor expressionVisitor
protected SelectVisitor selectVisitor
public ReplaceDeParser()
public ReplaceDeParser(ExpressionVisitor expressionVisitor, SelectVisitor selectVisitor, StringBuilder buffer)
expressionVisitor
- a ExpressionVisitor
to de-parse
expressions. It has to share the sameselectVisitor
- a SelectVisitor
to de-parse
Select
s. It has to share the
samebuffer
- the buffer that will be filled with the selectpublic StringBuilder getBuffer()
public void setBuffer(StringBuilder buffer)
public void deParse(Replace replace)
public void visit(ExpressionList expressionList)
visit
in interface ItemsListVisitor
public void visit(SubSelect subSelect)
visit
in interface ItemsListVisitor
public ExpressionVisitor getExpressionVisitor()
public void setExpressionVisitor(ExpressionVisitor visitor)
public SelectVisitor getSelectVisitor()
public void setSelectVisitor(SelectVisitor visitor)
public void visit(MultiExpressionList multiExprList)
visit
in interface ItemsListVisitor
Copyright © 2006–2018 TinyGroup. All rights reserved.