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 StringfunctionNameName of the functionprotected List<ValueExpression>parametersFunction parameters
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFunction(String functionName, List<ValueExpression> parameters)Create a new instance usingAbstractFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ValueExpressionVisitor visitor)Accept a visitorStringgetFunctionName()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:FunctionGet a function's name.- Specified by:
getFunctionNamein 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:ValueExpressionAccept a visitor- Specified by:
acceptin interfaceValueExpression- Parameters:
visitor- visitor to accept
-
-