Class AbstractFunction
- java.lang.Object
-
- com.exasol.sql.expression.function.AbstractFunction
-
- All Implemented Interfaces:
Function
,ValueExpression
- Direct Known Subclasses:
AnalyticFunction
,CastExasolFunction
,ExasolFunction
,ExasolUdf
public abstract class AbstractFunction extends Object implements Function
This is a base class for functions.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
functionName
Name of the functionprotected List<ValueExpression>
parameters
Function parameters
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFunction(String functionName, List<ValueExpression> parameters)
Create a new instance usingAbstractFunction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ValueExpressionVisitor visitor)
Accept a visitorString
getFunctionName()
Get a function's name.List<ValueExpression>
getParameters()
Get the value expressions (parameters of the function)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.exasol.sql.expression.function.Function
accept, hasParenthesis
-
-
-
-
Field Detail
-
functionName
protected String functionName
Name of the function
-
parameters
protected List<ValueExpression> parameters
Function parameters
-
-
Constructor Detail
-
AbstractFunction
protected AbstractFunction(String functionName, List<ValueExpression> parameters)
Create a new instance usingAbstractFunction
.- Parameters:
functionName
- name of a functionparameters
- zero or more value expressions
-
-
Method Detail
-
getFunctionName
public String getFunctionName()
Description copied from interface:Function
Get a function's name.- Specified by:
getFunctionName
in interfaceFunction
- Returns:
- function's name
-
getParameters
public List<ValueExpression> getParameters()
Get the value expressions (parameters of the function)- Returns:
- list of value expressions
-
accept
public final void accept(ValueExpressionVisitor visitor)
Description copied from interface:ValueExpression
Accept a visitor- Specified by:
accept
in interfaceValueExpression
- Parameters:
visitor
- visitor to accept
-
-