blob: 54c645405e0a62733331899eba3500d12cc2caed (
plain)
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
|
package bjc.rgens.parser.elements;
import bjc.rgens.parser.GenerationState;
/**
* Case element that appends a literal.
* @author Ben Culkin
*
*/
public class LiteralCaseElement extends CaseElement {
/**
* The value for this element.
*/
public String val;
/**
* Create a new case element.
*
* @param val The value to append.
*/
public LiteralCaseElement(String val) {
super(true);
this.val = val;
}
@Override
public void generate(GenerationState state) {
state.appendContents(val);
}
}
|