net.sf.jsqlparser.util.deparser
Class ReplaceDeParser

java.lang.Object
  extended by 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


Field Summary
protected  java.lang.StringBuffer buffer
           
protected  ExpressionVisitor expressionVisitor
           
protected  SelectVisitor selectVisitor
           
 
Constructor Summary
ReplaceDeParser()
           
ReplaceDeParser(ExpressionVisitor expressionVisitor, SelectVisitor selectVisitor, java.lang.StringBuffer buffer)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected java.lang.StringBuffer buffer

expressionVisitor

protected ExpressionVisitor expressionVisitor

selectVisitor

protected SelectVisitor selectVisitor
Constructor Detail

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 work
selectVisitor - a SelectVisitor to de-parse Selects. It has to share the same
StringBuffer (buffer parameter) as this object in order to work
buffer - the buffer that will be filled with the select
Method Detail

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)