![JAR search and dependency download from the Maven repository](/logo.png)
tests.java.org.python.tests.Visible Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-installer Show documentation
Show all versions of jython-installer 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;
/**
* Exposes several methods that should be visible statically and on instances in Python.
*/
public class Visible extends Invisible {
public int visibleField;
public int overloadedName; // see SubVisible.overloadedName()
public static final int sharedNameField = VISIBLE_SHARED_NAME_FIELD;
public static int visibleStaticField = PUBLIC_STATIC_FIELD;
public int visibleInstance = PUBLIC_METHOD_FIELD;
public static int visibleStatic = PUBLIC_STATIC_METHOD_FIELD;
public static class StaticInner {
public static int visibleStaticField = PUBLIC_STATIC_FIELD;
}
public Visible() {
this(PUBLIC_FIELD);
}
public Visible(int visibleFieldValue) {
overloadedName = visibleField = visibleFieldValue;
}
public int visibleInstance(int input) {
return PUBLIC_METHOD;
}
public int visibleInstance(String input) {
return OVERLOADED_PUBLIC_METHOD;
}
public int visibleInstance(int iinput, String input) {
return EXTRA_ARG_PUBLIC_METHOD;
}
public int getSharedNameField() {
return sharedNameField * 10;
}
public static int visibleInstance(String sinput, String input) {
return OVERLOADED_EXTRA_ARG_PUBLIC_METHOD;
}
public static int visibleStatic(int input) {
return PUBLIC_STATIC_METHOD;
}
public static int visibleStatic(String input) {
return OVERLOADED_PUBLIC_STATIC_METHOD;
}
public static int visibleStatic(int iinput, String input) {
return EXTRA_ARG_PUBLIC_STATIC_METHOD;
}
public static int getVisibleStaticField() {
return visibleStaticField;
}
public static void setVisibleStaticField(int newValue) {
visibleStaticField = newValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy