com.alibaba.simpleEL.dialect.ql.ast.QLOrderBy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SimpleEL Show documentation
Show all versions of SimpleEL Show documentation
simple expression language implementation
The newest version!
package com.alibaba.simpleEL.dialect.ql.ast;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.simpleEL.dialect.ql.visitor.QLAstVisitor;
public class QLOrderBy extends QLAstNode {
private final List items = new ArrayList();
public List getItems() {
return this.items;
}
@Override
protected void accept0(QLAstVisitor visitor) {
if (visitor.visit(this)) {
acceptChild(visitor, this.items);
}
visitor.endVisit(this);
}
@Override
public void output(StringBuffer buf) {
if (items.size() == 0) {
return;
}
buf.append("ORDER BY ");
for (int i = 0, size = items.size(); i < size; ++i) {
if (i != 0) {
buf.append(", ");
}
items.get(0).output(buf);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy