
spoon.support.reflect.code.CtCodeSnippetExpressionImpl Maven / Gradle / Ivy
package spoon.support.reflect.code;
import spoon.reflect.code.CtCodeSnippetExpression;
import spoon.reflect.code.CtExpression;
import spoon.reflect.visitor.CtVisitor;
import spoon.support.compiler.SnippetCompilationError;
import spoon.support.compiler.SnippetCompilationHelper;
public class CtCodeSnippetExpressionImpl extends CtExpressionImpl implements
CtCodeSnippetExpression {
private static final long serialVersionUID = 1L;
public void accept(CtVisitor visitor) {
visitor.visitCtCodeSnippetExpression(this);
}
String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@SuppressWarnings("unchecked")
public > E compile() throws SnippetCompilationError {
return (E)SnippetCompilationHelper.compileExpression(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy