com.alibaba.simpleEL.dialect.tiny.ast.TinyELVariantRefExpr 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.tiny.ast;
import com.alibaba.simpleEL.dialect.tiny.visitor.TinyELAstVisitor;
public class TinyELVariantRefExpr extends TinyELExpr {
private String name;
public TinyELVariantRefExpr() {
}
public TinyELVariantRefExpr(String name) {
if (name.startsWith("@@")) {
this.name = name;
} else if (name.startsWith("@")) {
name = name.substring(1);
this.name = name;
} else {
this.name = name;
}
}
public String getName() {
return name;
}
public void setName(String name) {
if (name.startsWith("@@")) {
this.name = name;
} else if (name.startsWith("@")) {
name = name.substring(1);
this.name = name;
} else {
this.name = name;
}
}
public void output(StringBuffer buf) {
buf.append(this.name);
}
@Override
protected void accept0(TinyELAstVisitor visitor) {
visitor.visit(this);
visitor.endVisit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy