net.sf.jsqlparser.util.deparser
Class ReplaceDeParser
java.lang.Object
net.sf.jsqlparser.util.deparser.ReplaceDeParser
- All Implemented Interfaces:
- ItemsListVisitor
public class ReplaceDeParser
- extends java.lang.Object
- implements ItemsListVisitor
A class to de-parse (that is, tranform from JSqlParser hierarchy into a string)
a Replace
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected java.lang.StringBuffer buffer
expressionVisitor
protected ExpressionVisitor expressionVisitor
selectVisitor
protected SelectVisitor selectVisitor
ReplaceDeParser
public ReplaceDeParser()
ReplaceDeParser
public ReplaceDeParser(ExpressionVisitor expressionVisitor,
SelectVisitor selectVisitor,
java.lang.StringBuffer buffer)
- Parameters:
expressionVisitor
- a ExpressionVisitor
to de-parse expressions. It has to share the same
StringBuffer (buffer parameter) as this object in order to workselectVisitor
- a SelectVisitor
to de-parse Select
s.
It has to share the same
StringBuffer (buffer parameter) as this object in order to workbuffer
- the buffer that will be filled with the select
getBuffer
public java.lang.StringBuffer getBuffer()
setBuffer
public void setBuffer(java.lang.StringBuffer buffer)
deParse
public void deParse(Replace replace)
visit
public void visit(ExpressionList expressionList)
- Specified by:
visit
in interface ItemsListVisitor
visit
public void visit(SubSelect subSelect)
- Specified by:
visit
in interface ItemsListVisitor
getExpressionVisitor
public ExpressionVisitor getExpressionVisitor()
getSelectVisitor
public SelectVisitor getSelectVisitor()
setExpressionVisitor
public void setExpressionVisitor(ExpressionVisitor visitor)
setSelectVisitor
public void setSelectVisitor(SelectVisitor visitor)