01: package spoon.support.reflect.code;
02:
03: import spoon.reflect.code.CtCodeSnippetExpression;
04: import spoon.reflect.code.CtExpression;
05: import spoon.reflect.visitor.CtVisitor;
06: import spoon.support.builder.CtSnippetCompilationError;
07: import spoon.support.builder.SnippetCompiler;
08:
09: public class CtCodeSnippetExpressionImpl<T> extends CtExpressionImpl<T>
10: implements CtCodeSnippetExpression<T> {
11:
12: private static final long serialVersionUID = 1L;
13:
14: public void accept(CtVisitor visitor) {
15: visitor.visitCtCodeSnippetExpression(this );
16: }
17:
18: String value;
19:
20: public String getValue() {
21: return value;
22: }
23:
24: public void setValue(String value) {
25: this .value = value;
26: }
27:
28: public CtExpression<T> compile() throws CtSnippetCompilationError {
29: return SnippetCompiler.compileExpression(this);
30: }
31:
32: }
|