Package com.alibaba.druid.sql.ast
Class SQLExprImpl
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLExprImpl
-
- Direct Known Subclasses:
BigQueryModelExpr,BigQueryTableExpr,HiveInputOutputFormat,ModelClause.CellAssignment,OdpsTransformExpr,OracleCursorExpr,OracleIntervalExpr,OracleIsOfTypeExpr,OracleIsSetExpr,OracleOuterExpr,PGExprImpl,SQLAliasedExpr,SQLAllColumnExpr,SQLAllExpr,SQLAnyExpr,SQLArrayExpr,SQLAssignItem,SQLAtTimeZoneExpr,SQLBetweenExpr,SQLBinaryExpr,SQLBinaryOpExpr,SQLBinaryOpExprGroup,SQLCaseExpr,SQLCastExpr,SQLContainsExpr,SQLCurrentOfCursorExpr,SQLCurrentTimeExpr,SQLCurrentUserExpr,SQLDataTypeRefExpr,SQLDbLinkExpr,SQLDefaultExpr,SQLExistsExpr,SQLExtractExpr,SQLFlashbackExpr,SQLGroupingSetExpr,SQLHexExpr,SQLIdentifierExpr,SQLInListExpr,SQLInSubQueryExpr,SQLIntervalExpr,SQLJSONValueExpr,SQLListExpr,SQLMatchAgainstExpr,SQLMethodInvokeExpr,SQLNotExpr,SQLNullExpr,SQLPatternExpr,SQLPropertyExpr,SQLQueryExpr,SQLSelectOrderByItem,SQLSequenceExpr,SQLSizeExpr,SQLSomeExpr,SQLStructExpr,SQLTextLiteralExpr,SQLTypeExpr,SQLUnaryExpr,SQLValuesExpr,SQLVariantRefExpr
public abstract class SQLExprImpl extends SQLObjectImpl implements SQLExpr
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanparenthesizedprotected intparenthesizedCount-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLExprImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SQLExprclone()protected voidcloneTo(SQLExprImpl x)SQLDataTypecomputeDataType()abstract booleanequals(Object o)List<SQLObject>getChildren()intgetParenthesizedCount()abstract inthashCode()voidincreaseParenthesizedCount()booleanisParenthesized()voidsetParenthesized(boolean parenthesized)voidsetParenthesizedCount(int parenthesizedCount)-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, accept0, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine, toString
-
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, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
isParenthesized
public boolean isParenthesized()
-
setParenthesized
public void setParenthesized(boolean parenthesized)
-
getParenthesizedCount
public int getParenthesizedCount()
-
setParenthesizedCount
public void setParenthesizedCount(int parenthesizedCount)
-
increaseParenthesizedCount
public void increaseParenthesizedCount()
-
clone
public abstract SQLExpr clone()
-
cloneTo
protected void cloneTo(SQLExprImpl x)
-
computeDataType
public SQLDataType computeDataType()
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLObjectImpl
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLExpr
-
-