-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathoperator.java
More file actions
44 lines (34 loc) · 1.14 KB
/
operator.java
File metadata and controls
44 lines (34 loc) · 1.14 KB
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
43
44
// Hand copied from stmt.
// XXX: autogenerate this.
package org.python.antlr.base;
import org.antlr.runtime.Token;
import org.python.antlr.AST;
import org.python.antlr.PythonTree;
import org.python.core.PyString;
import org.python.core.PyType;
import org.python.expose.ExposedGet;
import org.python.expose.ExposedType;
@ExposedType(name = "_ast.operator", base = AST.class)
public abstract class operator extends PythonTree {
public static final PyType TYPE = PyType.fromClass(operator.class);
private final static PyString[] fields = new PyString[0];
@ExposedGet(name = "_fields")
public PyString[] get_fields() { return fields; }
private final static PyString[] attributes =
new PyString[] {new PyString("lineno"), new PyString("col_offset")};
@ExposedGet(name = "_attributes")
public PyString[] get_attributes() { return attributes; }
public operator() {
}
public operator(PyType subType) {
}
public operator(int ttype, Token token) {
super(ttype, token);
}
public operator(Token token) {
super(token);
}
public operator(PythonTree node) {
super(node);
}
}