Package com.alibaba.druid.sql.ast.expr
Class SQLMethodInvokeExpr
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLExprImpl
-
- com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
-
- All Implemented Interfaces:
SQLExpr,SQLObject,SQLReplaceable,Serializable,Cloneable
- Direct Known Subclasses:
OdpsNewExpr,SQLAggregateExpr,SQLParametricMethodInvokeExpr
public class SQLMethodInvokeExpr extends SQLExprImpl implements SQLReplaceable, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLExpr>argumentsprotected SQLExprfromprotected SQLExprhasForprotected longhashCode64protected StringmethodNameprotected longmethodNameHashCode64protected SQLExprownerprotected SQLDataTyperesolvedReturnDataTypeprotected StringtrimOptionprotected SQLExprusing-
Fields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesized, parenthesizedCount
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLMethodInvokeExpr()SQLMethodInvokeExpr(SQLIdentifierExpr methodName)SQLMethodInvokeExpr(String methodName)SQLMethodInvokeExpr(String methodName, long methodNameHashCode64)SQLMethodInvokeExpr(String methodName, SQLExpr owner)SQLMethodInvokeExpr(String methodName, SQLExpr owner, SQLExpr... params)SQLMethodInvokeExpr(String methodName, SQLExpr owner, List<SQLExpr> params)
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
cloneTo, getParenthesizedCount, increaseParenthesizedCount, isParenthesized, setParenthesized, setParenthesizedCount
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, 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, putAttribute, setParent, setSource
-
-
-
-
Field Detail
-
methodName
protected String methodName
-
methodNameHashCode64
protected long methodNameHashCode64
-
hashCode64
protected long hashCode64
-
owner
protected SQLExpr owner
-
from
protected SQLExpr from
-
using
protected SQLExpr using
-
hasFor
protected SQLExpr hasFor
-
trimOption
protected String trimOption
-
resolvedReturnDataType
protected transient SQLDataType resolvedReturnDataType
-
-
Constructor Detail
-
SQLMethodInvokeExpr
public SQLMethodInvokeExpr()
-
SQLMethodInvokeExpr
public SQLMethodInvokeExpr(String methodName)
-
SQLMethodInvokeExpr
public SQLMethodInvokeExpr(SQLIdentifierExpr methodName)
-
SQLMethodInvokeExpr
public SQLMethodInvokeExpr(String methodName, long methodNameHashCode64)
-
SQLMethodInvokeExpr
public SQLMethodInvokeExpr(String methodName, SQLExpr owner, SQLExpr... params)
-
-
Method Detail
-
methodNameHashCode64
public long methodNameHashCode64()
-
hashCode64
public long hashCode64()
-
computeHashCode64
protected void computeHashCode64()
-
getMethodName
public String getMethodName()
-
setMethodName
public void setMethodName(String methodName)
-
setArgument
public void setArgument(int i, SQLExpr arg)
-
getArgument
public SQLExpr getArgument(int i)
-
addParameter
public void addParameter(SQLExpr param)
Deprecated.deprecated, instead of addArgument
-
addArgument
public void addArgument(SQLExpr arg)
-
getOwner
public SQLExpr getOwner()
-
setOwner
public void setOwner(SQLExpr owner)
-
getFrom
public SQLExpr getFrom()
-
setFrom
public void setFrom(SQLExpr x)
-
output
public void output(StringBuilder buf)
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Specified by:
accept0in classSQLObjectImpl
-
getChildren
public List getChildren()
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLExprImpl
-
accept0
protected void accept0(OracleASTVisitor visitor)
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classSQLExprImpl
-
hashCode
public int hashCode()
- Specified by:
hashCodein classSQLExprImpl
-
clone
public SQLMethodInvokeExpr clone()
-
cloneTo
public void cloneTo(SQLMethodInvokeExpr x)
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable
-
computeDataType
public SQLDataType computeDataType()
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLExprImpl
-
getUsing
public SQLExpr getUsing()
-
setUsing
public void setUsing(SQLExpr x)
-
getFor
public SQLExpr getFor()
-
setFor
public void setFor(SQLExpr x)
-
getTrimOption
public String getTrimOption()
-
setTrimOption
public void setTrimOption(String trimOption)
-
getResolvedReturnDataType
public SQLDataType getResolvedReturnDataType()
-
setResolvedReturnDataType
public void setResolvedReturnDataType(SQLDataType resolvedReturnDataType)
-
getAs
public SQLExpr getAs()
-
setAs
public void setAs(SQLExpr x)
-
getContent
public SQLExpr getContent()
-
setContent
public void setContent(SQLExpr x)
-
isRemoveBrackets
public boolean isRemoveBrackets()
-
setRemoveBrackets
public void setRemoveBrackets(boolean removeBrackets)
-
-