src.org.python.antlr.op.LShift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython Show documentation
Show all versions of jython Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
// Autogenerated AST node
package org.python.antlr.op;
import org.python.antlr.base.operator;
import org.python.antlr.PythonTree;
import org.python.core.Py;
import org.python.core.PyObject;
import org.python.core.PyString;
import org.python.core.PyType;
import org.python.expose.ExposedGet;
import org.python.expose.ExposedMethod;
import org.python.expose.ExposedNew;
import org.python.expose.ExposedType;
@ExposedType(name = "_ast.LShift", base = operator.class)
public class LShift extends PythonTree {
public static final PyType TYPE = PyType.fromClass(LShift.class);
public LShift() {
}
public LShift(PyType subType) {
super(subType);
}
@ExposedNew
@ExposedMethod
public void LShift___init__(PyObject[] args, String[] keywords) {}
private final static PyString[] fields = new PyString[0];
@ExposedGet(name = "_fields")
public PyString[] get_fields() { return fields; }
private final static PyString[] attributes = new PyString[0];
@ExposedGet(name = "_attributes")
public PyString[] get_attributes() { return attributes; }
@ExposedMethod
public PyObject __int__() {
return LShift___int__();
}
final PyObject LShift___int__() {
return Py.newInteger(7);
}
}