net.sf.jsqlparser.util.deparser
Class InsertDeParser
java.lang.Object
net.sf.jsqlparser.util.deparser.InsertDeParser
- All Implemented Interfaces:
- ItemsListVisitor
public class InsertDeParser
- extends java.lang.Object
- implements ItemsListVisitor
A class to de-parse (that is, tranform from JSqlParser hierarchy into a string)
an Insert
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
InsertDeParser
public InsertDeParser()
InsertDeParser
public InsertDeParser(ExpressionVisitor expressionVisitor,
SelectVisitor selectVisitor,
java.lang.StringBuffer buffer)
- Parameters:
expressionVisitor
- a ExpressionVisitor
to de-parse Expression
s. 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 insert
getBuffer
public java.lang.StringBuffer getBuffer()
setBuffer
public void setBuffer(java.lang.StringBuffer buffer)
deParse
public void deParse(Insert insert)
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)