com.alibaba.simpleEL.dialect.ql.ast.QLCharExpr 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 QLCharExpr extends QLLiteralExpr {
private String value;
public QLCharExpr() {
}
public QLCharExpr(String value) {
this.value = value;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public void output(StringBuffer buf) {
if ((this.value == null) || (this.value.length() == 0)) {
buf.append("NULL");
} else {
buf.append("'");
buf.append(this.value.replaceAll("'", "''"));
buf.append("'");
}
}
protected void accept0(QLAstVisitor visitor) {
visitor.visit(this);
visitor.endVisit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy