net.sf.jsqlparser.util.deparser
Class SelectDeParser
java.lang.Object
net.sf.jsqlparser.util.deparser.SelectDeParser
- All Implemented Interfaces:
- ColumnReferenceVisitor, FromItemVisitor, OrderByVisitor, SelectItemVisitor, SelectVisitor
public class SelectDeParser
- extends java.lang.Object
- implements SelectVisitor, OrderByVisitor, SelectItemVisitor, FromItemVisitor, ColumnReferenceVisitor
A class to de-parse (that is, tranform from JSqlParser hierarchy into a string)
a Select
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
SelectDeParser
public SelectDeParser()
SelectDeParser
public SelectDeParser(ExpressionVisitor expressionVisitor,
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 workbuffer
- the buffer that will be filled with the select
visit
public void visit(PlainSelect plainSelect)
- Specified by:
visit
in interface SelectVisitor
visit
public void visit(Union union)
- Specified by:
visit
in interface SelectVisitor
visit
public void visit(OrderByElement orderBy)
- Specified by:
visit
in interface OrderByVisitor
visit
public void visit(Column column)
- Specified by:
visit
in interface ColumnReferenceVisitor
visit
public void visit(ColumnIndex columnIndex)
- Specified by:
visit
in interface ColumnReferenceVisitor
visit
public void visit(AllColumns allColumns)
- Specified by:
visit
in interface SelectItemVisitor
visit
public void visit(AllTableColumns allTableColumns)
- Specified by:
visit
in interface SelectItemVisitor
visit
public void visit(SelectExpressionItem selectExpressionItem)
- Specified by:
visit
in interface SelectItemVisitor
visit
public void visit(SubSelect subSelect)
- Specified by:
visit
in interface FromItemVisitor
visit
public void visit(Table tableName)
- Specified by:
visit
in interface FromItemVisitor
deparseOrderBy
public void deparseOrderBy(java.util.List orderByElements)
deparseLimit
public void deparseLimit(Limit limit)
getBuffer
public java.lang.StringBuffer getBuffer()
setBuffer
public void setBuffer(java.lang.StringBuffer buffer)
getExpressionVisitor
public ExpressionVisitor getExpressionVisitor()
setExpressionVisitor
public void setExpressionVisitor(ExpressionVisitor visitor)
visit
public void visit(SubJoin subjoin)
- Specified by:
visit
in interface FromItemVisitor
deparseJoin
public void deparseJoin(Join join)