public class ReplaceDeParser extends java.lang.Object implements ItemsListVisitor
Replace
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuffer |
buffer |
protected ExpressionVisitor |
expressionVisitor |
protected SelectVisitor |
selectVisitor |
Constructor and Description |
---|
ReplaceDeParser() |
ReplaceDeParser(ExpressionVisitor expressionVisitor,
SelectVisitor selectVisitor,
java.lang.StringBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
deParse(Replace replace) |
java.lang.StringBuffer |
getBuffer() |
ExpressionVisitor |
getExpressionVisitor() |
SelectVisitor |
getSelectVisitor() |
void |
setBuffer(java.lang.StringBuffer buffer) |
void |
setExpressionVisitor(ExpressionVisitor visitor) |
void |
setSelectVisitor(SelectVisitor visitor) |
void |
visit(ExpressionList expressionList) |
void |
visit(SubSelect subSelect) |
protected java.lang.StringBuffer buffer
protected ExpressionVisitor expressionVisitor
protected SelectVisitor selectVisitor
public ReplaceDeParser()
public ReplaceDeParser(ExpressionVisitor expressionVisitor, SelectVisitor selectVisitor, java.lang.StringBuffer 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 java.lang.StringBuffer getBuffer()
public void setBuffer(java.lang.StringBuffer 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 SelectVisitor getSelectVisitor()
public void setExpressionVisitor(ExpressionVisitor visitor)
public void setSelectVisitor(SelectVisitor visitor)