Package net.sf.jasperreports.javascript
Class JavaScriptClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.mozilla.javascript.DefiningClassLoader
-
- net.sf.jasperreports.javascript.JavaScriptClassLoader
-
- All Implemented Interfaces:
org.mozilla.javascript.GeneratedClassLoader
public class JavaScriptClassLoader extends org.mozilla.javascript.DefiningClassLoader
Class loader used to load classes generated for JavaScript expression evaluation.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
JavaScriptCompiledEvaluator
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_INSTANCE_ERROR
static String
EXCEPTION_MESSAGE_KEY_LOAD_ERROR
-
Constructor Summary
Constructors Constructor Description JavaScriptClassLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.mozilla.javascript.Script
createScript(int classIndex, JavaScriptCompiledData compiledData)
protected void
finalize()
protected ProtectionDomain
getProtectionDomain()
protected Class<? extends org.mozilla.javascript.Script>
loadExpressionClass(JavaScriptCompiledData.CompiledClass compiledClass)
String
toString()
-
Methods inherited from class org.mozilla.javascript.DefiningClassLoader
defineClass, linkClass, loadClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_INSTANCE_ERROR
public static final String EXCEPTION_MESSAGE_KEY_INSTANCE_ERROR
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_LOAD_ERROR
public static final String EXCEPTION_MESSAGE_KEY_LOAD_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createScript
public org.mozilla.javascript.Script createScript(int classIndex, JavaScriptCompiledData compiledData)
-
loadExpressionClass
protected Class<? extends org.mozilla.javascript.Script> loadExpressionClass(JavaScriptCompiledData.CompiledClass compiledClass)
-
getProtectionDomain
protected ProtectionDomain getProtectionDomain()
-
-