summaryrefslogtreecommitdiff
path: root/submit/ast/CharConstant.java
blob: 8ca801d916246dd09f11c6bbd955af69dc79071b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Code formatter project
 * CS 4481
 */
package submit.ast;

/**
 *
 * @author edwajohn
 */
public class CharConstant extends AbstractNode implements Expression {

  private final char value;

  public CharConstant(char value) {
    this.value = value;
  }

  public void toCminus(StringBuilder builder, final String prefix) {
    builder.append("'").append(value).append("'");
  }

}