Package com.alibaba.druid.sql.ast.expr
Class SQLCharExpr
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
- All Implemented Interfaces:
SQLLiteralExpr
,SQLValuableExpr
,SQLExpr
,SQLObject
,Cloneable
,Comparable<SQLCharExpr>
- Direct Known Subclasses:
MySqlCharExpr
,PGCharExpr
,StarRocksCharExpr
public class SQLCharExpr
extends SQLTextLiteralExpr
implements SQLValuableExpr, Comparable<SQLCharExpr>
-
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
text
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) clone()
int
getValue()
void
output
(Appendable buf) toString()
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
equals, getText, hashCode, setText
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Field Details
-
DATA_TYPE
-
-
Constructor Details
-
SQLCharExpr
public SQLCharExpr() -
SQLCharExpr
-
SQLCharExpr
-
-
Method Details
-
output
- Specified by:
output
in interfaceSQLObject
- Overrides:
output
in classSQLObjectImpl
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
getValue
- Specified by:
getValue
in interfaceSQLValuableExpr
-
toString
- Overrides:
toString
in classSQLObjectImpl
-
clone
- Specified by:
clone
in interfaceSQLExpr
- Specified by:
clone
in interfaceSQLLiteralExpr
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in classSQLTextLiteralExpr
-
computeDataType
- Specified by:
computeDataType
in interfaceSQLExpr
- Overrides:
computeDataType
in classSQLExprImpl
-
getChildren
- Specified by:
getChildren
in interfaceSQLExpr
- Overrides:
getChildren
in classSQLTextLiteralExpr
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SQLCharExpr>
-