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>
public class MySqlCharExpr extends SQLCharExpr implements MySqlExpr
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanparenthesized-
Fields inherited from class com.alibaba.druid.sql.ast.expr.SQLCharExpr
DATA_TYPE
-
Fields inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
text
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesizedCount
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description MySqlCharExpr()MySqlCharExpr(String text)MySqlCharExpr(String text, String charset)MySqlCharExpr(String text, String charset, String collate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept0(MySqlASTVisitor visitor)protected voidaccept0(SQLASTVisitor visitor)MySqlCharExprclone()StringgetCharset()StringgetCollate()StringgetType()booleanisParenthesized()voidoutput(StringBuilder buf)voidsetCharset(String charset)voidsetCollate(String collate)voidsetParenthesized(boolean parenthesized)voidsetType(String type)StringtoString()-
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLCharExpr
compareTo, computeDataType, getChildren, getValue, toDate, toDateTime, toTimestamp
-
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
equals, getText, hashCode, setText
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
cloneTo, getParenthesizedCount, increaseParenthesizedCount, setParenthesizedCount
-
Methods 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, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLExpr
computeDataType, getChildren, getHint
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
getCharset
public String getCharset()
-
setCharset
public void setCharset(String charset)
-
getCollate
public String getCollate()
- Overrides:
getCollatein classSQLCharExpr
-
setCollate
public void setCollate(String collate)
- Overrides:
setCollatein classSQLCharExpr
-
getType
public String getType()
-
setType
public void setType(String type)
-
isParenthesized
public boolean isParenthesized()
- Overrides:
isParenthesizedin classSQLExprImpl
-
setParenthesized
public void setParenthesized(boolean parenthesized)
- Overrides:
setParenthesizedin classSQLExprImpl
-
output
public void output(StringBuilder buf)
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLCharExpr
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLCharExpr
-
accept0
public void accept0(MySqlASTVisitor visitor)
-
toString
public String toString()
- Overrides:
toStringin classSQLCharExpr
-
clone
public MySqlCharExpr clone()
- Specified by:
clonein interfaceSQLExpr- Specified by:
clonein interfaceSQLLiteralExpr- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLCharExpr
-
-