Class MySqlCharExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
com.alibaba.druid.sql.ast.expr.SQLCharExpr
com.alibaba.druid.sql.dialect.mysql.ast.expr.MySqlCharExpr
- All Implemented Interfaces:
SQLLiteralExpr,SQLValuableExpr,SQLExpr,SQLObject,MySqlExpr,Cloneable,Comparable<SQLCharExpr>
-
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.expr.SQLCharExpr
DATA_TYPEFields inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
textFields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesizedCountFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionMySqlCharExpr(String text) MySqlCharExpr(String text, String charset) MySqlCharExpr(String text, String charset, String collate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept0(MySqlASTVisitor visitor) protected voidaccept0(SQLASTVisitor visitor) clone()getType()booleanvoidoutput(StringBuilder buf) voidsetCharset(String charset) voidsetCollate(String collate) voidsetParenthesized(boolean parenthesized) voidtoString()Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLCharExpr
compareTo, computeDataType, getChildren, getValue, toDate, toDateTime, toTimestampMethods inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
equals, getText, hashCode, setTextMethods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
cloneTo, getParenthesizedCount, increaseParenthesizedCount, setParenthesizedCountMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLExpr
computeDataType, getChildren, getHintMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setParent, setSource
-
Field Details
-
parenthesized
protected boolean parenthesized
-
-
Constructor Details
-
MySqlCharExpr
public MySqlCharExpr() -
MySqlCharExpr
-
MySqlCharExpr
-
MySqlCharExpr
-
-
Method Details
-
getCharset
-
setCharset
-
getCollate
- Overrides:
getCollatein classSQLCharExpr
-
setCollate
- Overrides:
setCollatein classSQLCharExpr
-
getType
-
setType
-
isParenthesized
public boolean isParenthesized()- Overrides:
isParenthesizedin classSQLExprImpl
-
setParenthesized
public void setParenthesized(boolean parenthesized) - Overrides:
setParenthesizedin classSQLExprImpl
-
output
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLCharExpr
-
accept0
- Overrides:
accept0in classSQLCharExpr
-
accept0
-
toString
- Overrides:
toStringin classSQLCharExpr
-
clone
- Specified by:
clonein interfaceSQLExpr- Specified by:
clonein interfaceSQLLiteralExpr- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLCharExpr
-