blob: 18156ad02d701a0ee2e9b435983684ffa2ae2473 (
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
32
33
34
|
package org.zwobble.couscous.backends.python.ast;
import org.zwobble.couscous.backends.python.ast.visitors.PythonNodeVisitor;
public final class PythonIntegerLiteralNode implements PythonExpressionNode {
private final int value;
@Override
public void accept(PythonNodeVisitor visitor) {
visitor.visit(this);
}
private PythonIntegerLiteralNode(final int value) {
this.value = value;
}
public static PythonIntegerLiteralNode pythonIntegerLiteral(final int value) {
return new PythonIntegerLiteralNode(value);
}
public int getValue() {
return this.value;
}
@java.lang.Override
public java.lang.String toString() {
return "PythonIntegerLiteralNode(value=" + this.getValue() + ")";
}
@Override
public int precedence() {
return Integer.MAX_VALUE;
}
}
|