forked from JSQLParser/JSqlParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctionAllColumns.java
More file actions
49 lines (40 loc) · 1.13 KB
/
FunctionAllColumns.java
File metadata and controls
49 lines (40 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2025 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.statement.select;
import net.sf.jsqlparser.expression.ExpressionVisitor;
import net.sf.jsqlparser.expression.Function;
public class FunctionAllColumns extends AllColumns {
private Function function;
public FunctionAllColumns(Function function) {
super(null, null, null);
this.function = function;
}
public Function getFunction() {
return function;
}
public FunctionAllColumns setFunction(Function function) {
this.function = function;
return this;
}
public StringBuilder appendTo(StringBuilder builder) {
builder.append("(");
builder.append(function);
builder.append(").*");
return builder;
}
@Override
public String toString() {
return appendTo(new StringBuilder()).toString();
}
@Override
public <T, S> T accept(ExpressionVisitor<T> expressionVisitor, S context) {
return expressionVisitor.visit(this, context);
}
}