tests.java.org.python.tests.Invisible Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-standalone Show documentation
Show all versions of jython-standalone 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.
package org.python.tests;
/**
* A class with nothing visible from Python by default, though several fields should be visible when
* subclassing.
*/
public class Invisible implements VisibilityResults {
private static int privateStaticField;
private int privateField;
protected static int protectedStaticField = PROTECTED_STATIC_FIELD;
protected int protectedField = PROTECTED_FIELD;
static int packageStaticField = PACKAGE_STATIC_FIELD;
int packageField = PACKAGE_FIELD;
Invisible() {}
private static int privateStaticMethod() {
return 7;
}
private int privateMethod() {
return 7;
}
protected static int protectedStaticMethod(int input) {
return PROTECTED_STATIC_METHOD;
}
protected static int protectedStaticMethod(String input) {
return OVERLOADED_STATIC_METHOD;
}
protected int protectedMethod(int input) {
return PROTECTED_METHOD;
}
protected int protectedMethod(String input) {
return OVERLOADED_PROTECTED_METHOD;
}
static int packageStaticMethod() {
return PACKAGE_STATIC_METHOD;
}
int packageMethod() {
return PACKAGE_METHOD;
}
}