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
public class SQLCharExpr
extends SQLTextLiteralExpr
implements SQLValuableExpr, Comparable<SQLCharExpr>
-
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
textFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()intgetValue()voidoutput(Appendable buf) toString()Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLTextLiteralExpr
equals, getText, hashCode, setTextMethods 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, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
getValue
- Specified by:
getValuein interfaceSQLValuableExpr
-
toString
- Overrides:
toStringin classSQLObjectImpl
-
clone
- Specified by:
clonein interfaceSQLExpr- Specified by:
clonein interfaceSQLLiteralExpr- Specified by:
clonein interfaceSQLObject- Specified by:
clonein classSQLTextLiteralExpr
-
computeDataType
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLExprImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLTextLiteralExpr
-
compareTo
- Specified by:
compareToin interfaceComparable<SQLCharExpr>
-