org.autoplot.jythonsupport.JythonRefactory

Provide one class that manages backwards compatibility as package names are changed. See https://sourceforge.net/p/autoplot/feature-requests/528/

JythonRefactory( )


fixImports

fixImports( String s ) → String

Convert old names to modern names, for example "org.virbo.autoplot" to "org.autoplot". Autoplot became its own project early on, but the code was slow to update.

Parameters

s - the script

Returns:

the script with new names.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

fixImports( String s, String name ) → String
fixImports( java.io.InputStream in ) → java.io.InputStream
fixImports( java.io.InputStream in, String name ) → java.io.InputStream

main

main( String[] args ) → void

Parameters

args - a java.lang.String[]

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]