A B C D E G H I L M N O R S T W 

A

AbstractCompilerFactory - Class in org.codehaus.commons.compiler
Base class for a simple ICompilerFactory.
AbstractCompilerFactory() - Constructor for class org.codehaus.commons.compiler.AbstractCompilerFactory
 
AbstractJavaSourceClassLoader - Class in org.codehaus.commons.compiler
A ClassLoader that, unlike usual ClassLoaders, does not load byte code, but reads Java source code and then scans, parses, compiles and loads it into the virtual machine.
AbstractJavaSourceClassLoader() - Constructor for class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
 
AbstractJavaSourceClassLoader(ClassLoader) - Constructor for class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
 
AbstractJavaSourceClassLoader.ProtectionDomainFactory - Interface in org.codehaus.commons.compiler
 
ANY_TYPE - Static variable in interface org.codehaus.commons.compiler.IExpressionEvaluator
Deprecated.
Since autoboxing was introduced in JANINO, this feature is no longer necessary because you can use expression type Object.class

B

BOOT_CLASS_LOADER - Static variable in interface org.codehaus.commons.compiler.ICookable
The ClassLoader that loads this classes on the boot class path, i.e. the JARs in the JRE's "lib" and "lib/ext" directories, but not the JARs and class directories specified through the class path.

C

ClassBodyDemo - Class in org.codehaus.commons.compiler.samples
A test program that allows you to play with the IClassBodyEvaluator API.
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
Utility class that finds implementations of ICompilerFactorys.
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
Same as ICookable.cook(Reader), but for multiple scripts.
cook(String[], Reader[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Same as ICookable.cook(String, Reader), but cooks a set of scripts into one class.
cook(String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Same as ICookable.cook(String), but for multiple scripts.
cook(String[], String[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Same as ICookable.cook(String, String), but for multiple scripts.
Cookable - Class in org.codehaus.commons.compiler
Base class for a simple ICookable.
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
If the parameter and return types of the expression are known at compile time, then a "fast" expression evaluator can be instantiated through IExpressionEvaluator.createFastEvaluator(String, Class, String[]).
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.

D

DEFAULT_CLASS_NAME - Static variable in interface org.codehaus.commons.compiler.IClassBodyEvaluator
Default name for the generated class.
DemoBase - Class in org.codehaus.commons.compiler.samples
Common base class for the "...Demo" classes that demostrate Janino.
DemoBase() - Constructor for class org.codehaus.commons.compiler.samples.DemoBase
 

E

ErrorHandler - Interface in org.codehaus.commons.compiler
Processes an error issued by the compiler.
evaluate(Object[]) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
Evaluates the expression with concrete parameter values.
evaluate(Object[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Calls the script with concrete parameter values.
evaluate(int, Object[]) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Same as IScriptEvaluator.evaluate(Object[]), but for multiple scripts.
explode(String) - Static method in class org.codehaus.commons.compiler.samples.DemoBase
 
ExpressionDemo - Class in org.codehaus.commons.compiler.samples
A test program that allows you to play around with the ExpressionEvaluator class.

G

getAllCompilerFactories() - Static method in class org.codehaus.commons.compiler.CompilerFactoryFactory
Finds all implementation of org.codehaus.commons.compiler on the class path, then loads and instantiates their ICompilerFactorys.
getClassLoader() - Method in interface org.codehaus.commons.compiler.ISimpleCompiler
Returns a ClassLoader object through which the previously compiled classes can be accessed.
getClazz() - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
Returns the loaded Class.
getColumnNumber() - Method in class org.codehaus.commons.compiler.Location
 
getCompilerFactory(String) - Static method in class org.codehaus.commons.compiler.CompilerFactoryFactory
Loads an ICompilerFactory by class name.
getDefaultCompilerFactory() - Static method in class org.codehaus.commons.compiler.CompilerFactoryFactory
Finds the first implementation of org.codehaus.commons.compiler on the class path, then loads and instantiates its ICompilerFactory.
getFileName() - Method in class org.codehaus.commons.compiler.Location
 
getId() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
getId() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
getImplementationVersion() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
getImplementationVersion() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
getLineNumber() - Method in class org.codehaus.commons.compiler.Location
 
getLocation() - Method in exception org.codehaus.commons.compiler.LocatedException
 
getMessage() - Method in exception org.codehaus.commons.compiler.LocatedException
Returns the message specified at creation time, preceeded with nicely formatted location information (if any).
getMethod() - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Returns the loaded Method.
getMethod(int) - Method in interface org.codehaus.commons.compiler.IScriptEvaluator
Same as IScriptEvaluator.getMethod(), but for multiple scripts.
getProtectionDomain(String) - Method in interface org.codehaus.commons.compiler.AbstractJavaSourceClassLoader.ProtectionDomainFactory
 
getSpecificationVersion() - Static method in class org.codehaus.commons.compiler.CompilerFactoryFactory
 

H

handleError(String, Location) - Method in interface org.codehaus.commons.compiler.ErrorHandler
May or may not choose to throw a CompileException.
handleWarning(String, String, Location) - Method in interface org.codehaus.commons.compiler.WarningHandler
May or may not choose to throw a CompileException.

I

IClassBodyEvaluator - Interface in org.codehaus.commons.compiler
Parses a class body and returns it as a Class object ready for use with java.lang.reflect.
ICompilerFactory - Interface in org.codehaus.commons.compiler
ICookable - Interface in org.codehaus.commons.compiler
"Cooking" means scanning a sequence of characters and turning them into some JVM-executable artifact.
IExpressionEvaluator - Interface in org.codehaus.commons.compiler
An engine that evaluates expressions in Java bytecode.
IScriptEvaluator - Interface in org.codehaus.commons.compiler
An engine that executes a script in Java bytecode.
ISimpleCompiler - Interface in org.codehaus.commons.compiler
A simplified Java compiler that can compile only a single compilation unit.

L

LocatedException - Exception in org.codehaus.commons.compiler
An Exception that is associated with an optional Location in a source file.
LocatedException(String, Location) - Constructor for exception org.codehaus.commons.compiler.LocatedException
 
LocatedException(String, Location, Throwable) - Constructor for exception org.codehaus.commons.compiler.LocatedException
 
Location - Class in org.codehaus.commons.compiler
Immutable representation of the location of a character in a document, as defined by an optional file name, a line number and a column number.
Location(String, int, int) - Constructor for class org.codehaus.commons.compiler.Location
 

M

main(String[]) - Static method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
Reads Java source code for a given class name, scan, parse, compile and load it into the virtual machine, and invoke its "main()" method with the given arguments.
main(String[]) - Static method in class org.codehaus.commons.compiler.samples.ClassBodyDemo
 
main(String[]) - Static method in class org.codehaus.commons.compiler.samples.ExpressionDemo
 
main(String[]) - Static method in class org.codehaus.commons.compiler.samples.ScriptDemo
 
main(String[]) - Static method in class org.codehaus.commons.compiler.samples.ShippingCost
 

N

newClassBodyEvaluator() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newClassBodyEvaluator() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
newExpressionEvaluator() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newExpressionEvaluator() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
newJavaSourceClassLoader() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newJavaSourceClassLoader(ClassLoader) - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newJavaSourceClassLoader() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
newJavaSourceClassLoader(ClassLoader) - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
newScriptEvaluator() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newScriptEvaluator() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
newSimpleCompiler() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newSimpleCompiler() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
NotNull - Annotation Type in org.codehaus.commons.nullanalysis
Designates that a field, return value, argument, or variable is guaranteed to be non-null.
NotNullByDefault - Annotation Type in org.codehaus.commons.nullanalysis
By default, types in method signatures that lack a null annotation are regarded as nullable.
NOWHERE - Static variable in class org.codehaus.commons.compiler.Location
Representation of an unspecified location.
Nullable - Annotation Type in org.codehaus.commons.nullanalysis
Designates that a field, return value, argument, or variable may be null.

O

optionalProtectionDomainFactory - Variable in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
 
org.codehaus.commons.compiler - package org.codehaus.commons.compiler
This package declares interfaces for the implementation of an IExpressionEvaluator, an IScriptEvaluator, an IClassBodyEvaluator and an ISimpleCompiler.
org.codehaus.commons.compiler.samples - package org.codehaus.commons.compiler.samples
Sample applications for the Janino JavaTM compiler.
org.codehaus.commons.nullanalysis - package org.codehaus.commons.nullanalysis
Annotations for ECLIPSE's "null analysis" feature.

R

readString(Reader) - Static method in class org.codehaus.commons.compiler.Cookable
Reads all characters from the given Reader into a String.

S

ScriptDemo - Class in org.codehaus.commons.compiler.samples
A test program that allows you to play around with the ScriptEvaluator class.
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
By default, CompileExceptions are thrown on compile errors, but an application my install its own ErrorHandler.
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
Same as IScriptEvaluator.setMethodName(String), but for multiple scripts.
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
Same as IScriptEvaluator.setOverrideMethod(boolean), but for multiple scripts.
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
Same as IScriptEvaluator.setParameters(String[], Class[]), but for multiple scripts.
setParentClassLoader(ClassLoader) - Method in interface org.codehaus.commons.compiler.ICookable
The "parent class loader" is used to load referenced classes.
setProtectionDomainFactory(AbstractJavaSourceClassLoader.ProtectionDomainFactory) - Method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
 
setReturnType(Class<?>) - Method in interface org.codehaus.commons.compiler.IExpressionEvaluator
Deprecated.
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
Deprecated.
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
Same as IScriptEvaluator.setStaticMethod(boolean), but for multiple scripts.
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
Same as IScriptEvaluator.setThrownExceptions(Class[]), but for multiple scripts.
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
Sample application which demonstrates how to use the ExpressionEvaluator class.
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.

T

toString() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
toString() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
toString() - Method in class org.codehaus.commons.compiler.Location
Converts this Location into an english text, like 'File Main.java, Line 23, Column 79'.

W

WarningHandler - Interface in org.codehaus.commons.compiler
Processes a warning issued by the compiler.
A B C D E G H I L M N O R S T W 

Copyright © 2016. All rights reserved.