- ClassBodyDemo - Class in org.codehaus.commons.compiler.samples
-
- CompileException - Exception in org.codehaus.commons.compiler
-
Representation of an error condition during compilation.
- CompileException(String, Location) - Constructor for exception org.codehaus.commons.compiler.CompileException
-
- CompileException(String, Location, Throwable) - Constructor for exception org.codehaus.commons.compiler.CompileException
-
- CompilerFactoryFactory - Class in org.codehaus.commons.compiler
-
- confine(ClassLoader, AccessControlContext) - Static method in class org.codehaus.commons.compiler.Sandbox
-
All future actions that are executed through classes that were loaded through the given classLoader
will be checked against the given accessControlContext.
- confine(ClassLoader, ProtectionDomain) - Static method in class org.codehaus.commons.compiler.Sandbox
-
All future actions that are executed through classes that were loaded through the given classLoader
will be checked against the given protectionDomain.
- confine(ClassLoader, Permissions) - Static method in class org.codehaus.commons.compiler.Sandbox
-
All future actions that are executed through classes that were loaded through the given classLoader
will be checked against the given permissions.
- cook(Reader) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(InputStream) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(String, InputStream) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(InputStream, String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(String, InputStream, String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(String, String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cook(String, Reader) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
Reader.
- cook(Reader) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
Reader.
- cook(InputStream) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
InputStream, encoded
in the "platform default encoding".
- cook(String, InputStream) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
InputStream, encoded
in the "platform default encoding".
- cook(InputStream, String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
InputStream with the given
encoding.
- cook(String, InputStream, String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
InputStream with the given
encoding.
- cook(String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
String.
- cook(String, String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
String.
- cook(Reader[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- cook(String[], Reader[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- cook(String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- cook(String[], String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- Cookable - Class in org.codehaus.commons.compiler
-
- Cookable() - Constructor for class org.codehaus.commons.compiler.Cookable
-
- cookFile(File) - Method in class org.codehaus.commons.compiler.Cookable
-
- cookFile(File, String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cookFile(String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cookFile(String, String) - Method in class org.codehaus.commons.compiler.Cookable
-
- cookFile(File) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
File, encoded in the "platform default
encoding".
- cookFile(File, String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the given
File with the given
encoding.
- cookFile(String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
- cookFile(String, String) - Method in interface org.codehaus.commons.compiler.ICookable
-
Reads, scans, parses and compiles Java tokens from the named file with the given optionalEncoding.
- createFastEvaluator(String, Class<T>, String[]) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
-
- createFastEvaluator(Reader, Class<T>, String[]) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
-
- createFastEvaluator(String, Class<T>, String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- createFastEvaluator(Reader, Class<T>, String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
If the parameter and return types of the expression are known at compile time, then a "fast" script evaluator
can be instantiated through this method.
- createInstance(Reader) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
Scans, parses and compiles a class body from the tokens delivered by the the given
Reader, then creates
and returns an instance of that class.
- createObject(Class<?>, String) - Static method in class org.codehaus.commons.compiler.samples.DemoBase
-
Creates an instance of the given type, by calling the single-string-parameter constructor, or, if
the value equals "", the zero-parameter constructor.
- Sandbox - Class in org.codehaus.commons.compiler
-
This class establishes a security manager that confines the permissions for code executed through classes that are
loaded through specific class loaders.
- ScriptDemo - Class in org.codehaus.commons.compiler.samples
-
- setClassName(String) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
Sets the name of the generated class.
- setCompileErrorHandler(ErrorHandler) - Method in interface org.codehaus.commons.compiler.ICookable
-
- setDebuggingInfo(boolean, boolean, boolean) - Method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
-
- setDebuggingInformation(boolean, boolean, boolean) - Method in interface org.codehaus.commons.compiler.ICookable
-
Determines what kind of debugging information is included in the generates classes.
- setDefaultImports(String[]) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
"Default imports" add to the system import "java.lang", i.e. the evaluator may refer to classes imported by
default imports without having to explicitly declare IMPORT statements.
- setExpressionType(Class<?>) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
-
Defines the type of the expression.
- setExpressionTypes(Class<?>[]) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
-
Configures the types of the expressions.
- setExtendedClass(Class<?>) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
Sets a particular superclass that the generated class will extend.
- setExtendedType(Class<?>) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
- setImplementedInterfaces(Class<?>[]) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
Sets a particular set of interfaces that the generated class will implement.
- setImplementedTypes(Class<?>[]) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
-
- setMethodName(String) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Defines the name of the generated method.
- setMethodNames(String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- setNoPermissions() - Method in interface org.codehaus.commons.compiler.ISimpleCompiler
-
Installs a security manager in the running JVM such that all generated code, when executed, is not allowed to
execute any checked operations.
- setOverrideMethod(boolean) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Defines whether the generated method overrides a methods declared in a supertype.
- setOverrideMethod(boolean[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- setParameters(String[], Class<?>[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Defines the names and types of the parameters of the generated method.
- setParameters(String[][], Class<?>[][]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- setParentClassLoader(ClassLoader) - Method in interface org.codehaus.commons.compiler.ICookable
-
The "parent class loader" is used to load referenced classes.
- setPermissions(Permissions) - Method in interface org.codehaus.commons.compiler.ISimpleCompiler
-
Installs a security manager in the running JVM such that all generated code, when executed, will be checked
against the given permissions.
- setProtectionDomainFactory(AbstractJavaSourceClassLoader.ProtectionDomainFactory) - Method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
-
- setReturnType(Class<?>) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
-
- setReturnType(Class<?>) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Defines the return type of the generated method.
- setReturnTypes(Class<?>[]) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
-
- setReturnTypes(Class<?>[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Configures the return types of the generated methods.
- setSourceFileCharacterEncoding(String) - Method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
-
- setSourcePath(File[]) - Method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
-
- setStaticMethod(boolean) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Defines whether the generated method should be STATIC or not.
- setStaticMethod(boolean[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- setThrownExceptions(Class<?>[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
Defines the exceptions that the generated method may throw.
- setThrownExceptions(Class<?>[][]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
-
- setWarningHandler(WarningHandler) - Method in interface org.codehaus.commons.compiler.ICookable
-
By default, warnings are discarded, but an application my install a custom
WarningHandler.
- ShippingCost - Class in org.codehaus.commons.compiler.samples
-
- stringToType(String) - Static method in class org.codehaus.commons.compiler.samples.DemoBase
-
- stringToTypes(String) - Static method in class org.codehaus.commons.compiler.samples.DemoBase
-
Converts the given comma-separated list of class names to an array of
Classes.
- SYSTEM_PROPERTY_SOURCE_DEBUGGING_DIR - Static variable in interface org.codehaus.commons.compiler.ICookable
-
If the source code is not read from a file, debuggers have a hard time locating the source file for source-level
debugging.
- SYSTEM_PROPERTY_SOURCE_DEBUGGING_ENABLE - Static variable in interface org.codehaus.commons.compiler.ICookable
-
Setting this system property to 'true' enables source-level debugging.