Package com.alibaba.druid.sql.ast
Class SQLZOrderBy
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLZOrderBy
-
- All Implemented Interfaces:
SQLObject,SQLReplaceable
public final class SQLZOrderBy extends SQLObjectImpl implements SQLReplaceable
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLSelectOrderByItem>items-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLZOrderBy()SQLZOrderBy(SQLExpr expr)SQLZOrderBy(SQLExpr expr, SQLOrderingSpecification type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor v)voidaddItem(SQLExpr item)voidaddItem(SQLExpr expr, SQLOrderingSpecification type)voidaddItem(SQLSelectOrderByItem item)SQLZOrderByclone()protected SQLSelectOrderByItemcreateItem()booleanequals(Object o)List<SQLSelectOrderByItem>getItems()inthashCode()booleanisSibings()booleanreplace(SQLExpr expr, SQLExpr target)voidsetSibings(boolean sibings)-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine, toString
-
-
-
-
Field Detail
-
items
protected final List<SQLSelectOrderByItem> items
-
-
Constructor Detail
-
SQLZOrderBy
public SQLZOrderBy()
-
SQLZOrderBy
public SQLZOrderBy(SQLExpr expr)
-
SQLZOrderBy
public SQLZOrderBy(SQLExpr expr, SQLOrderingSpecification type)
-
-
Method Detail
-
addItem
public void addItem(SQLSelectOrderByItem item)
-
addItem
public void addItem(SQLExpr item)
-
getItems
public List<SQLSelectOrderByItem> getItems()
-
isSibings
public boolean isSibings()
-
setSibings
public void setSibings(boolean sibings)
-
accept0
protected void accept0(SQLASTVisitor v)
- Specified by:
accept0in classSQLObjectImpl
-
addItem
public void addItem(SQLExpr expr, SQLOrderingSpecification type)
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable
-
createItem
protected SQLSelectOrderByItem createItem()
-
clone
public SQLZOrderBy clone()
- Specified by:
clonein interfaceSQLObject- Overrides:
clonein classSQLObjectImpl
-
-