blob: 1a245cdcd9b6c3574067c72e8139a6e9bccef1c3 (
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
35
36
37
38
39
40
41
42
|
package org.zwobble.couscous.backends.python.ast;
import org.zwobble.couscous.backends.python.ast.visitors.PythonNodeVisitor;
import java.util.List;
public final class PythonGetSliceNode implements PythonExpressionNode {
private final PythonExpressionNode receiver;
private final List<PythonExpressionNode> arguments;
@Override
public void accept(PythonNodeVisitor visitor) {
visitor.visit(this);
}
private PythonGetSliceNode(final PythonExpressionNode receiver, final List<PythonExpressionNode> arguments) {
this.receiver = receiver;
this.arguments = arguments;
}
public static PythonGetSliceNode pythonGetSlice(final PythonExpressionNode receiver, final List<PythonExpressionNode> arguments) {
return new PythonGetSliceNode(receiver, arguments);
}
public PythonExpressionNode getReceiver() {
return this.receiver;
}
public List<PythonExpressionNode> getArguments() {
return this.arguments;
}
@java.lang.Override
public java.lang.String toString() {
return "PythonGetSliceNode(receiver=" + this.getReceiver() + ", arguments=" + this.getArguments() + ")";
}
@Override
public int precedence() {
return 150;
}
}
|