blob: 88508d218146d77f5301871066383e8d39c61d90 (
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
|
package bjc.dicelang.neodice.statements;
import static bjc.dicelang.neodice.statements.StatementValue.Type.*;
/**
* Statement value that represents an integer.
* @author Ben Culkin
*
*/
public class IntegerStatementValue extends StatementValue {
/** The integer value. */
public final int value;
/**
* Create an integer statement value.
* @param value The int to use as the value.
*/
public IntegerStatementValue(int value) {
super(INTEGER);
this.value = value;
}
@Override
public String toString() {
return "(" + value + ")";
}
}
|