org.python
Class Version
- java.lang.Object
-
- org.python.Version
-
public class Version extends java.lang.ObjectJython version information. The version number and build information are loaded from the version.properties file, located in this class file's directory. version.properties is generated by ant.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringDATETimestamp of the current build.static intPY_MAJOR_VERSIONTokenized version.static intPY_MICRO_VERSIONstatic intPY_MINOR_VERSIONstatic intPY_RELEASE_LEVELstatic intPY_RELEASE_SERIALstatic java.lang.StringPY_VERSIONThe current version of Jython.static java.lang.StringTIME
-
Constructor Summary
Constructors Constructor and Description Version()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringgetBuildInfo()Return the current build information, including revision and timestamp.static java.util.Set<CodeFlag>getDefaultCodeFlags()static java.lang.StringgetGitIdentifier()Return the current git identifier name, normally the current tag, falling back to the branch.static java.lang.StringgetGitVersion()Return the current git version number.static java.lang.StringgetVersion()Return the Python version, including compiler (or in our case, the Java VM).static java.lang.StringgetVM()Describe the current Java VM.
-
-
-
Field Detail
-
PY_VERSION
public static java.lang.String PY_VERSION
The current version of Jython.
-
PY_MAJOR_VERSION
public static int PY_MAJOR_VERSION
Tokenized version.
-
PY_MINOR_VERSION
public static int PY_MINOR_VERSION
-
PY_MICRO_VERSION
public static int PY_MICRO_VERSION
-
PY_RELEASE_LEVEL
public static int PY_RELEASE_LEVEL
-
PY_RELEASE_SERIAL
public static int PY_RELEASE_SERIAL
-
DATE
public static java.lang.String DATE
Timestamp of the current build.
-
TIME
public static java.lang.String TIME
-
-
Method Detail
-
getGitVersion
public static java.lang.String getGitVersion()
Return the current git version number. May be an empty string on environments that can't determine it.
-
getGitIdentifier
public static java.lang.String getGitIdentifier()
Return the current git identifier name, normally the current tag, falling back to the branch.
-
getBuildInfo
public static java.lang.String getBuildInfo()
Return the current build information, including revision and timestamp.
-
getVM
public static java.lang.String getVM()
Describe the current Java VM.
-
getVersion
public static java.lang.String getVersion()
Return the Python version, including compiler (or in our case, the Java VM).
-
getDefaultCodeFlags
public static java.util.Set<CodeFlag> getDefaultCodeFlags()
-
-
DMelt 3.0 © DataMelt by jWork.ORG