blob: c3eea3cddbca191a74ae41e261d0f329c11a1948 (
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
|
/*
* Code formatter project
* CS 4481
*/
package submit.ast;
/**
*
* @author edwajohn
*/
public class NumConstant implements Expression, Node, Constant {
private final int value;
public NumConstant(int value) {
this.value = value;
}
public void toCminus(StringBuilder builder, final String prefix) {
builder.append(Integer.toString(value));
}
}
|