Package com.alibaba.druid.sql.ast.expr
Class SQLIdentifierExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr
- All Implemented Interfaces:
SQLExpr,SQLName,SQLObject,Cloneable,Comparable<SQLIdentifierExpr>
public final class SQLIdentifierExpr
extends SQLExprImpl
implements SQLName, Comparable<SQLIdentifierExpr>
-
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesizedFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLIdentifierExpr(String name) SQLIdentifierExpr(String name, long hash_lower) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()intbooleangetName()inthashCode()longstatic booleanmatchIgnoreCase(SQLExpr expr, String name) booleannameEquals(String name) longvoidoutput(StringBuilder buf) voidsetCollate(String collate) voidvoidsetResolvedColumn(SQLColumnDefinition resolvedColumn) voidsetResolvedColumn(SQLSelectItem selectItem) voidsetResolvedDeclareItem(SQLDeclareItem resolvedDeclareItem) voidsetResolvedOwnerObject(SQLObject resolvedOwnerObject) voidsetResolvedParameter(SQLParameter resolvedParameter) voidsetResolvedTableSource(SQLTableSource resolvedTableSource) simplify()toString()Methods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
isParenthesized, setParenthesizedMethods 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, 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, putAttribute, setParent
-
Field Details
-
name
-
collate
-
-
Constructor Details
-
SQLIdentifierExpr
public SQLIdentifierExpr() -
SQLIdentifierExpr
-
SQLIdentifierExpr
-
-
Method Details
-
getSimpleName
- Specified by:
getSimpleNamein interfaceSQLName
-
getLowerName
-
getName
-
setName
-
getCollate
-
setCollate
-
nameHashCode64
public long nameHashCode64()- Specified by:
nameHashCode64in interfaceSQLName
-
hashCode64
public long hashCode64()- Specified by:
hashCode64in interfaceSQLName
-
output
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
hashCode
public int hashCode()- Specified by:
hashCodein classSQLExprImpl
-
equals
- Specified by:
equalsin classSQLExprImpl
-
toString
- Overrides:
toStringin classSQLObjectImpl
-
clone
-
simplify
-
normalizedName
-
getResolvedColumn
- Specified by:
getResolvedColumnin interfaceSQLName
-
getResolvedSelectItem
-
getResolvedColumnObject
-
setResolvedColumn
-
setResolvedColumn
-
getResolvedTableSource
-
setResolvedTableSource
-
getResolvedOwnerObject
-
setResolvedOwnerObject
-
getResolvedParameter
-
setResolvedParameter
-
getResolvedDeclareItem
-
setResolvedDeclareItem
-
computeDataType
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLExprImpl
-
nameEquals
-
getChildren
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLExprImpl
-
matchIgnoreCase
-
compareTo
- Specified by:
compareToin interfaceComparable<SQLIdentifierExpr>
-