public class PythonScriptRegistry extends ScriptRegistry implements IPythonScriptRegistry
IPythonScriptRegistry simply using maps to perform 1:1 mapping.| Constructor and Description |
|---|
PythonScriptRegistry() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getReference(Script script)
Return the reference
String for this Script. |
Script |
getScript(java.lang.String reference)
Return the
Script identified by this reference String. |
void |
put(Script script)
Add a new
Script to the registry and store its mapping. |
getResource, getScriptequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResource, getScriptpublic void put(Script script)
IScriptRegistryScript to the registry and store its mapping.put in interface IScriptRegistryput in class ScriptRegistryscript - Script to be stored in registry.public Script getScript(java.lang.String reference)
IPythonScriptRegistryScript identified by this reference String.getScript in interface IPythonScriptRegistryreference - Reference String to get Script for.Script identified by reference String or null if no mapping found.public java.lang.String getReference(Script script)
IPythonScriptRegistryString for this Script.getReference in interface IPythonScriptRegistryscript - Script to get reference String for.String for Script or null if no mapping found.