public class Function extends net.sf.jsqlparser.parser.ASTNodeAccessImpl implements Expression
| Constructor and Description |
|---|
Function() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ExpressionVisitor expressionVisitor) |
Expression |
getAttribute() |
<E extends Expression> |
getAttribute(Class<E> type) |
String |
getAttributeName() |
KeepExpression |
getKeep() |
List<String> |
getMultipartName() |
String |
getName() |
NamedExpressionList |
getNamedParameters()
the parameters might be named parameters, e.g. substring('foobar' from 2 for 3)
|
List<OrderByElement> |
getOrderByElements() |
ExpressionList |
getParameters()
The list of parameters of the function (if any, else null) If the parameter is "*",
allColumns is set to true
|
boolean |
isAllColumns() |
boolean |
isDistinct()
true if the function is "distinct"
|
boolean |
isEscaped()
Return true if it's in the form "{fn function_body() }"
|
boolean |
isIgnoreNulls() |
boolean |
isUnique()
true if the function is "unique"
|
void |
setAllColumns(boolean b) |
void |
setAttribute(Expression attribute) |
void |
setAttributeName(String attributeName) |
void |
setDistinct(boolean b) |
void |
setEscaped(boolean isEscaped) |
void |
setIgnoreNulls(boolean ignoreNulls)
This is at the moment only necessary for AnalyticExpression initialization and not for normal
functions.
|
void |
setKeep(KeepExpression keep) |
void |
setName(List<String> string) |
void |
setName(String string) |
void |
setNamedParameters(NamedExpressionList list) |
void |
setOrderByElements(List<OrderByElement> orderByElements) |
void |
setParameters(ExpressionList list) |
void |
setUnique(boolean b) |
String |
toString() |
Function |
withAllColumns(boolean allColumns) |
Function |
withAttribute(Expression attribute) |
Function |
withAttributeName(String attributeName) |
Function |
withDistinct(boolean distinct) |
Function |
withIgnoreNulls(boolean ignoreNulls) |
Function |
withKeep(KeepExpression keep) |
Function |
withName(String name) |
Function |
withNamedParameters(NamedExpressionList namedParameters) |
Function |
withParameters(ExpressionList parameters) |
Function |
withUnique(boolean unique) |
public void accept(ExpressionVisitor expressionVisitor)
accept in interface Expressionpublic String getName()
public void setName(String string)
public boolean isAllColumns()
public void setAllColumns(boolean b)
public boolean isIgnoreNulls()
public void setIgnoreNulls(boolean ignoreNulls)
public boolean isDistinct()
public void setDistinct(boolean b)
public boolean isUnique()
public void setUnique(boolean b)
public ExpressionList getParameters()
public void setParameters(ExpressionList list)
public NamedExpressionList getNamedParameters()
public void setNamedParameters(NamedExpressionList list)
public boolean isEscaped()
public void setEscaped(boolean isEscaped)
public Expression getAttribute()
public void setAttribute(Expression attribute)
public String getAttributeName()
public void setAttributeName(String attributeName)
public KeepExpression getKeep()
public void setKeep(KeepExpression keep)
public Function withAttribute(Expression attribute)
public Function withKeep(KeepExpression keep)
public Function withIgnoreNulls(boolean ignoreNulls)
public Function withParameters(ExpressionList parameters)
public Function withNamedParameters(NamedExpressionList namedParameters)
public Function withAllColumns(boolean allColumns)
public Function withDistinct(boolean distinct)
public Function withUnique(boolean unique)
public List<OrderByElement> getOrderByElements()
public void setOrderByElements(List<OrderByElement> orderByElements)
public <E extends Expression> E getAttribute(Class<E> type)
Copyright © 2004–2022 JSQLParser. All rights reserved.