Class AbstractExpressionRenderer
- java.lang.Object
-
- com.exasol.sql.expression.rendering.AbstractExpressionRenderer
-
- Direct Known Subclasses:
ValueExpressionRenderer
public abstract class AbstractExpressionRenderer extends Object
Common base class for expression renderers.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBuilderbuilderprotected StringRendererConfigconfig
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractExpressionRenderer(StringRendererConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappend(String string)protected voidappendAutoQuoted(String identifier)protected voidappendBooleanLiteral(BooleanLiteral literal)protected voidappendKeyword(String keyword)protected voidendParenthesis()Stringrender()Render expression to a stringprotected voidstartParenthesis()
-
-
-
Field Detail
-
config
protected final StringRendererConfig config
-
builder
protected final StringBuilder builder
-
-
Constructor Detail
-
AbstractExpressionRenderer
protected AbstractExpressionRenderer(StringRendererConfig config)
-
-
Method Detail
-
appendKeyword
protected void appendKeyword(String keyword)
-
appendBooleanLiteral
protected void appendBooleanLiteral(BooleanLiteral literal)
-
startParenthesis
protected void startParenthesis()
-
endParenthesis
protected void endParenthesis()
-
append
protected void append(String string)
-
appendAutoQuoted
protected void appendAutoQuoted(String identifier)
-
render
public String render()
Render expression to a string- Returns:
- rendered string
-
-