public class org.springframework.scripting.bsh.BshScriptFactory extends java.lang.Object implements org.springframework.scripting.ScriptFactory, org.springframework.beans.factory.BeanClassLoaderAware
{
private final java.lang.String scriptSourceLocator;
private final java.lang.Class[] scriptInterfaces;
private java.lang.ClassLoader beanClassLoader;
private java.lang.Class scriptClass;
private final java.lang.Object scriptClassMonitor;
private boolean wasModifiedForTypeCheck;
public void <init>(java.lang.String)
{
org.springframework.scripting.bsh.BshScriptFactory v;
java.lang.Object v;
java.lang.ClassLoader v;
java.lang.String v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v := @parameter: java.lang.String;
specialinvoke v.<java.lang.Object: void <init>()>();
v = staticinvoke <org.springframework.util.ClassUtils: java.lang.ClassLoader getDefaultClassLoader()>();
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.ClassLoader beanClassLoader> = v;
v = new java.lang.Object;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Object scriptClassMonitor> = v;
v.<org.springframework.scripting.bsh.BshScriptFactory: boolean wasModifiedForTypeCheck> = 0;
staticinvoke <org.springframework.util.Assert: void hasText(java.lang.String,java.lang.String)>(v, "\'scriptSourceLocator\' must not be empty");
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.String scriptSourceLocator> = v;
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class[] scriptInterfaces> = null;
return;
}
public transient void <init>(java.lang.String, java.lang.Class[])
{
org.springframework.scripting.bsh.BshScriptFactory v;
java.lang.Class[] v;
java.lang.Object v;
java.lang.ClassLoader v;
java.lang.String v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Class[];
specialinvoke v.<java.lang.Object: void <init>()>();
v = staticinvoke <org.springframework.util.ClassUtils: java.lang.ClassLoader getDefaultClassLoader()>();
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.ClassLoader beanClassLoader> = v;
v = new java.lang.Object;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Object scriptClassMonitor> = v;
v.<org.springframework.scripting.bsh.BshScriptFactory: boolean wasModifiedForTypeCheck> = 0;
staticinvoke <org.springframework.util.Assert: void hasText(java.lang.String,java.lang.String)>(v, "\'scriptSourceLocator\' must not be empty");
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.String scriptSourceLocator> = v;
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class[] scriptInterfaces> = v;
return;
}
public void setBeanClassLoader(java.lang.ClassLoader)
{
java.lang.ClassLoader v;
org.springframework.scripting.bsh.BshScriptFactory v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v := @parameter: java.lang.ClassLoader;
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.ClassLoader beanClassLoader> = v;
return;
}
public java.lang.String getScriptSourceLocator()
{
java.lang.String v;
org.springframework.scripting.bsh.BshScriptFactory v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.String scriptSourceLocator>;
return v;
}
public java.lang.Class[] getScriptInterfaces()
{
java.lang.Class[] v;
org.springframework.scripting.bsh.BshScriptFactory v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class[] scriptInterfaces>;
return v;
}
public boolean requiresConfigInterface()
{
org.springframework.scripting.bsh.BshScriptFactory v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
return 1;
}
public transient java.lang.Object getScriptedObject(org.springframework.scripting.ScriptSource, java.lang.Class[]) throws java.io.IOException, org.springframework.scripting.ScriptCompilationException
{
java.lang.Throwable v, v, v, v;
org.springframework.scripting.bsh.BshScriptFactory v;
java.lang.String v, v, v, v;
boolean v, v, v, v;
java.lang.Class[] v;
org.springframework.scripting.ScriptCompilationException v, v, v;
org.springframework.scripting.ScriptSource v;
java.lang.Class v, v;
java.lang.Object v, v, v, v;
java.lang.ClassLoader v, v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v := @parameter: org.springframework.scripting.ScriptSource;
v := @parameter: java.lang.Class[];
label:
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Object scriptClassMonitor>;
entermonitor v;
label:
v = v.<org.springframework.scripting.bsh.BshScriptFactory: boolean wasModifiedForTypeCheck>;
if v == 0 goto label;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass>;
if v != null goto label;
v = 1;
goto label;
label:
v = 0;
label:
v.<org.springframework.scripting.bsh.BshScriptFactory: boolean wasModifiedForTypeCheck> = 0;
v = interfaceinvoke v.<org.springframework.scripting.ScriptSource: boolean isModified()>();
if v != 0 goto label;
if v == 0 goto label;
label:
v = interfaceinvoke v.<org.springframework.scripting.ScriptSource: java.lang.String getScriptAsString()>();
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.ClassLoader beanClassLoader>;
v = staticinvoke <org.springframework.scripting.bsh.BshScriptUtils: java.lang.Object evaluateBshScript(java.lang.String,java.lang.Class[],java.lang.ClassLoader)>(v, v, v);
v = v instanceof java.lang.Class;
if v == 0 goto label;
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass> = v;
goto label;
label:
exitmonitor v;
label:
return v;
label:
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass>;
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
v := @caughtexception;
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass> = null;
v = new org.springframework.scripting.ScriptCompilationException;
specialinvoke v.<org.springframework.scripting.ScriptCompilationException: void <init>(org.springframework.scripting.ScriptSource,java.lang.Throwable)>(v, v);
throw v;
label:
if v == null goto label;
label:
v = virtualinvoke v.<java.lang.Class: java.lang.Object newInstance()>();
label:
return v;
label:
v := @caughtexception;
v = new org.springframework.scripting.ScriptCompilationException;
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Could not instantiate script class: \u0001");
specialinvoke v.<org.springframework.scripting.ScriptCompilationException: void <init>(org.springframework.scripting.ScriptSource,java.lang.String,java.lang.Throwable)>(v, v, v);
throw v;
label:
v = interfaceinvoke v.<org.springframework.scripting.ScriptSource: java.lang.String getScriptAsString()>();
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.ClassLoader beanClassLoader>;
v = staticinvoke <org.springframework.scripting.bsh.BshScriptUtils: java.lang.Object createBshObject(java.lang.String,java.lang.Class[],java.lang.ClassLoader)>(v, v, v);
label:
return v;
label:
v := @caughtexception;
v = new org.springframework.scripting.ScriptCompilationException;
specialinvoke v.<org.springframework.scripting.ScriptCompilationException: void <init>(org.springframework.scripting.ScriptSource,java.lang.Throwable)>(v, v);
throw v;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch bsh.EvalError from label to label with label;
catch bsh.EvalError from label to label with label;
catch java.lang.Throwable from label to label with label;
catch bsh.EvalError from label to label with label;
}
public java.lang.Class getScriptedObjectType(org.springframework.scripting.ScriptSource) throws java.io.IOException, org.springframework.scripting.ScriptCompilationException
{
java.lang.Throwable v, v;
org.springframework.scripting.bsh.BshScriptFactory v;
org.springframework.scripting.ScriptCompilationException v;
org.springframework.scripting.ScriptSource v;
java.lang.Class v, v;
java.lang.Object v;
java.lang.ClassLoader v;
java.lang.String v;
boolean v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v := @parameter: org.springframework.scripting.ScriptSource;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Object scriptClassMonitor>;
entermonitor v;
label:
v = interfaceinvoke v.<org.springframework.scripting.ScriptSource: boolean isModified()>();
if v == 0 goto label;
v.<org.springframework.scripting.bsh.BshScriptFactory: boolean wasModifiedForTypeCheck> = 1;
v = interfaceinvoke v.<org.springframework.scripting.ScriptSource: java.lang.String getScriptAsString()>();
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.ClassLoader beanClassLoader>;
v = staticinvoke <org.springframework.scripting.bsh.BshScriptUtils: java.lang.Class determineBshObjectType(java.lang.String,java.lang.ClassLoader)>(v, v);
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass> = v;
label:
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass>;
label:
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Class scriptClass> = null;
v = new org.springframework.scripting.ScriptCompilationException;
specialinvoke v.<org.springframework.scripting.ScriptCompilationException: void <init>(org.springframework.scripting.ScriptSource,java.lang.Throwable)>(v, v);
throw v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch bsh.EvalError from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public boolean requiresScriptedObjectRefresh(org.springframework.scripting.ScriptSource)
{
java.lang.Throwable v;
org.springframework.scripting.ScriptSource v;
org.springframework.scripting.bsh.BshScriptFactory v;
java.lang.Object v;
boolean v, v, v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v := @parameter: org.springframework.scripting.ScriptSource;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.Object scriptClassMonitor>;
entermonitor v;
label:
v = interfaceinvoke v.<org.springframework.scripting.ScriptSource: boolean isModified()>();
if v != 0 goto label;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: boolean wasModifiedForTypeCheck>;
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
exitmonitor v;
label:
return v;
label:
v := @caughtexception;
exitmonitor v;
throw v;
catch java.lang.Throwable from label to label with label;
}
public java.lang.String toString()
{
java.lang.String v, v;
org.springframework.scripting.bsh.BshScriptFactory v;
v := @this: org.springframework.scripting.bsh.BshScriptFactory;
v = v.<org.springframework.scripting.bsh.BshScriptFactory: java.lang.String scriptSourceLocator>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("BshScriptFactory: script source locator [\u]");
return v;
}
}