blob: be9278961cc2c63c4f28a1027d0737cc8246d26f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*******************************************************************************
* Copyright (c) 2005, 2007 committers of openArchitectureWare and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* committers of openArchitectureWare - initial API and implementation
*******************************************************************************/
package org.eclipse.internal.xpand2.ast;
import java.util.Set;
import org.eclipse.xpand2.XpandExecutionContext;
import org.eclipse.xtend.expression.AnalysationIssue;
/**
* *
*
* @author Sven Efftinge (http://www.efftinge.de) *
*/
public class TextStatement extends Statement {
private String value;
private boolean deleteLine;
public TextStatement(final String text, final boolean nonl) {
deleteLine = nonl;
value = text;
}
public String getValue() {
return value;
}
public boolean isDeleteLine() {
return deleteLine;
}
public void analyzeInternal(final XpandExecutionContext ctx, final Set<AnalysationIssue> issues) {
// Nothing to check here
}
@Override
public void evaluateInternal(final XpandExecutionContext ctx) {
ctx.getOutput().write(getValue());
}
}
|