com.alibaba.simpleEL.dialect.ql.ast.QLOrderByItem 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 com.alibaba.simpleEL.dialect.ql.visitor.QLAstVisitor;
public class QLOrderByItem extends QLAstNode {
private QLExpr expr;
private QLOrderByMode mode = QLOrderByMode.ASC;
public QLOrderByItem() {
}
public QLOrderByItem(QLExpr expr) {
this.expr = expr;
}
public QLExpr getExpr() {
return this.expr;
}
public void setExpr(QLExpr expr) {
this.expr = expr;
}
public QLOrderByMode getMode() {
return mode;
}
public void setMode(QLOrderByMode mode) {
this.mode = mode;
}
@Override
protected void accept0(QLAstVisitor visitor) {
if (visitor.visit(this)) {
acceptChild(visitor, this.expr);
}
visitor.endVisit(this);
}
@Override
public void output(StringBuffer buf) {
expr.output(buf);
if (mode != null) {
buf.append(mode.name());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy