public class ExpressionDeParser extends Object implements ExpressionVisitor, ItemsListVisitor
Expression
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
buffer |
protected SelectVisitor |
selectVisitor |
protected boolean |
useBracketsInExprList |
Constructor and Description |
---|
ExpressionDeParser() |
ExpressionDeParser(SelectVisitor selectVisitor,
StringBuilder buffer) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
getBuffer() |
SelectVisitor |
getSelectVisitor() |
void |
setBuffer(StringBuilder buffer) |
void |
setSelectVisitor(SelectVisitor visitor) |
void |
visit(Addition addition) |
void |
visit(AllComparisonExpression allComparisonExpression) |
void |
visit(AnalyticExpression aexpr) |
void |
visit(AndExpression andExpression) |
void |
visit(AnyComparisonExpression anyComparisonExpression) |
void |
visit(Between between) |
void |
visit(BitwiseAnd bitwiseAnd) |
void |
visit(BitwiseOr bitwiseOr) |
void |
visit(BitwiseXor bitwiseXor) |
void |
visit(CaseExpression caseExpression) |
void |
visit(CastExpression cast) |
void |
visit(Column tableColumn) |
void |
visit(Concat concat) |
void |
visit(DateValue dateValue) |
void |
visit(Division division) |
void |
visit(DoubleValue doubleValue) |
void |
visit(EqualsTo equalsTo) |
void |
visit(ExistsExpression existsExpression) |
void |
visit(ExpressionList expressionList) |
void |
visit(ExtractExpression eexpr) |
void |
visit(Function function) |
void |
visit(GreaterThan greaterThan) |
void |
visit(GreaterThanEquals greaterThanEquals) |
void |
visit(InExpression inExpression) |
void |
visit(IntervalExpression iexpr) |
void |
visit(IsNullExpression isNullExpression) |
void |
visit(JdbcNamedParameter jdbcNamedParameter) |
void |
visit(JdbcParameter jdbcParameter) |
void |
visit(JsonExpression jsonExpr) |
void |
visit(LikeExpression likeExpression) |
void |
visit(LongValue longValue) |
void |
visit(Matches matches) |
void |
visit(MinorThan minorThan) |
void |
visit(MinorThanEquals minorThanEquals) |
void |
visit(Modulo modulo) |
void |
visit(MultiExpressionList multiExprList) |
void |
visit(Multiplication multiplication) |
void |
visit(NotEqualsTo notEqualsTo) |
void |
visit(NullValue nullValue) |
void |
visit(OracleHierarchicalExpression oexpr) |
void |
visit(OrExpression orExpression) |
void |
visit(Parenthesis parenthesis) |
void |
visit(RegExpMatchOperator rexpr) |
void |
visit(RegExpMySQLOperator rexpr) |
void |
visit(SignedExpression signedExpression) |
void |
visit(StringValue stringValue) |
void |
visit(SubSelect subSelect) |
void |
visit(Subtraction subtraction) |
void |
visit(TimestampValue timestampValue) |
void |
visit(TimeValue timeValue) |
void |
visit(WhenClause whenClause) |
void |
visitOldOracleJoinBinaryExpression(OldOracleJoinBinaryExpression expression,
String operator) |
protected StringBuilder buffer
protected SelectVisitor selectVisitor
protected boolean useBracketsInExprList
public ExpressionDeParser()
public ExpressionDeParser(SelectVisitor selectVisitor, StringBuilder buffer)
selectVisitor
- a SelectVisitor to de-parse SubSelects. It has to
share the same
StringBuilder myBuf = new StringBuilder();
MySelectDeparser selectDeparser = new MySelectDeparser();
selectDeparser.setBuffer(myBuf);
ExpressionDeParser expressionDeParser = new ExpressionDeParser(selectDeparser, myBuf);
buffer
- the buffer that will be filled with the expressionpublic StringBuilder getBuffer()
public void setBuffer(StringBuilder buffer)
public void visit(Addition addition)
visit
in interface ExpressionVisitor
public void visit(AndExpression andExpression)
visit
in interface ExpressionVisitor
public void visit(Between between)
visit
in interface ExpressionVisitor
public void visit(EqualsTo equalsTo)
visit
in interface ExpressionVisitor
public void visit(Division division)
visit
in interface ExpressionVisitor
public void visit(DoubleValue doubleValue)
visit
in interface ExpressionVisitor
public void visitOldOracleJoinBinaryExpression(OldOracleJoinBinaryExpression expression, String operator)
public void visit(GreaterThan greaterThan)
visit
in interface ExpressionVisitor
public void visit(GreaterThanEquals greaterThanEquals)
visit
in interface ExpressionVisitor
public void visit(InExpression inExpression)
visit
in interface ExpressionVisitor
public void visit(SignedExpression signedExpression)
visit
in interface ExpressionVisitor
public void visit(IsNullExpression isNullExpression)
visit
in interface ExpressionVisitor
public void visit(JdbcParameter jdbcParameter)
visit
in interface ExpressionVisitor
public void visit(LikeExpression likeExpression)
visit
in interface ExpressionVisitor
public void visit(ExistsExpression existsExpression)
visit
in interface ExpressionVisitor
public void visit(LongValue longValue)
visit
in interface ExpressionVisitor
public void visit(MinorThan minorThan)
visit
in interface ExpressionVisitor
public void visit(MinorThanEquals minorThanEquals)
visit
in interface ExpressionVisitor
public void visit(Multiplication multiplication)
visit
in interface ExpressionVisitor
public void visit(NotEqualsTo notEqualsTo)
visit
in interface ExpressionVisitor
public void visit(NullValue nullValue)
visit
in interface ExpressionVisitor
public void visit(OrExpression orExpression)
visit
in interface ExpressionVisitor
public void visit(Parenthesis parenthesis)
visit
in interface ExpressionVisitor
public void visit(StringValue stringValue)
visit
in interface ExpressionVisitor
public void visit(Subtraction subtraction)
visit
in interface ExpressionVisitor
public void visit(SubSelect subSelect)
visit
in interface ExpressionVisitor
visit
in interface ItemsListVisitor
public void visit(Column tableColumn)
visit
in interface ExpressionVisitor
public void visit(Function function)
visit
in interface ExpressionVisitor
public void visit(ExpressionList expressionList)
visit
in interface ItemsListVisitor
public SelectVisitor getSelectVisitor()
public void setSelectVisitor(SelectVisitor visitor)
public void visit(DateValue dateValue)
visit
in interface ExpressionVisitor
public void visit(TimestampValue timestampValue)
visit
in interface ExpressionVisitor
public void visit(TimeValue timeValue)
visit
in interface ExpressionVisitor
public void visit(CaseExpression caseExpression)
visit
in interface ExpressionVisitor
public void visit(WhenClause whenClause)
visit
in interface ExpressionVisitor
public void visit(AllComparisonExpression allComparisonExpression)
visit
in interface ExpressionVisitor
public void visit(AnyComparisonExpression anyComparisonExpression)
visit
in interface ExpressionVisitor
public void visit(Concat concat)
visit
in interface ExpressionVisitor
public void visit(Matches matches)
visit
in interface ExpressionVisitor
public void visit(BitwiseAnd bitwiseAnd)
visit
in interface ExpressionVisitor
public void visit(BitwiseOr bitwiseOr)
visit
in interface ExpressionVisitor
public void visit(BitwiseXor bitwiseXor)
visit
in interface ExpressionVisitor
public void visit(CastExpression cast)
visit
in interface ExpressionVisitor
public void visit(Modulo modulo)
visit
in interface ExpressionVisitor
public void visit(AnalyticExpression aexpr)
visit
in interface ExpressionVisitor
public void visit(ExtractExpression eexpr)
visit
in interface ExpressionVisitor
public void visit(MultiExpressionList multiExprList)
visit
in interface ItemsListVisitor
public void visit(IntervalExpression iexpr)
visit
in interface ExpressionVisitor
public void visit(JdbcNamedParameter jdbcNamedParameter)
visit
in interface ExpressionVisitor
public void visit(OracleHierarchicalExpression oexpr)
visit
in interface ExpressionVisitor
public void visit(RegExpMatchOperator rexpr)
visit
in interface ExpressionVisitor
public void visit(RegExpMySQLOperator rexpr)
visit
in interface ExpressionVisitor
public void visit(JsonExpression jsonExpr)
visit
in interface ExpressionVisitor
Copyright © 2006–2018 TinyGroup. All rights reserved.