Skip navigation links
A B C D E F G H I L M N O P 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
 
accept(T) - Method in interface org.codehaus.commons.compiler.java8.java.util.function.Consumer
 
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

CLASS - Static variable in interface org.codehaus.commons.compiler.java8.java.util.function.Consumer
 
ClassBodyDemo - Class in org.codehaus.commons.compiler.samples
A test program that allows you to play with the IClassBodyEvaluator API.
Classes - Class in org.codehaus.commons.compiler.util.reflect
 
compile(File[]) - Method in class org.codehaus.commons.compiler.ICompiler
Reads a set of Java compilation units (a.k.a.
compile(Resource[]) - Method in class org.codehaus.commons.compiler.ICompiler
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
 
CompilerDemo - Class in org.codehaus.commons.compiler.samples
 
CompilerFactoryFactory - Class in org.codehaus.commons.compiler
Utility class that finds implementations of ICompilerFactorys.
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, PermissionCollection) - 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.
Consumer<T> - Interface in org.codehaus.commons.compiler.java8.java.util.function
Facade for Java 8's java.util.reflect.Consumer interface.
Consumers - Class in org.codehaus.commons.compiler.java8.java.util.function
Helper methods for the Consumer facade.
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.
CREATE_NEXT_TO_SOURCE_FILE - Static variable in class org.codehaus.commons.compiler.ICompiler
Special value for ICompiler.setClassFileCreator(ResourceCreator): Indicates that .class resources are to be created in the directory of the .java resource from which they are generated.
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.
createResource(String) - Method in class org.codehaus.commons.compiler.util.resource.FileResourceCreator
 
createResource(String) - Method in interface org.codehaus.commons.compiler.util.resource.ResourceCreator
Creates the designated resource.

D

DEFAULT_CLASS_NAME - Static variable in interface org.codehaus.commons.compiler.IClassBodyEvaluator
Default name for the generated class.
deleteResource(String) - Method in class org.codehaus.commons.compiler.util.resource.FileResourceCreator
 
deleteResource(String) - Method in interface org.codehaus.commons.compiler.util.resource.ResourceCreator
Deletes the resource with the given name.
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
 
DirectoryResourceCreator - Class in org.codehaus.commons.compiler.util.resource
Creates a resource in a given directory: destinationDirectory/resourceName
DirectoryResourceCreator(File) - Constructor for class org.codehaus.commons.compiler.util.resource.DirectoryResourceCreator
 
DirectoryResourceFinder - Class in org.codehaus.commons.compiler.util.resource
A FileResourceFinder that finds file resources in a directory.
DirectoryResourceFinder(File) - Constructor for class org.codehaus.commons.compiler.util.resource.DirectoryResourceFinder
 
Disassembler - Class in org.codehaus.commons.compiler.util
 
disassembleToStdout(byte[]) - Static method in class org.codehaus.commons.compiler.util.Disassembler
Loads a "de.unkrig.jdisasm.Disassembler" through reflection (to avoid a compile-time dependency) and uses it to disassemble the given bytes to System.out.

E

EMPTY_RESOURCE_FINDER - Static variable in class org.codehaus.commons.compiler.util.resource.ResourceFinder
This one's useful when a resource finder is required, but cannot be created for some reason.
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 IExpressionEvaluator class.

F

FileResource - Class in org.codehaus.commons.compiler.util.resource
Representation of a resource that is a File.
FileResource(File) - Constructor for class org.codehaus.commons.compiler.util.resource.FileResource
 
FileResourceCreator - Class in org.codehaus.commons.compiler.util.resource
Stores a stream of bytes in a named resource.
FileResourceCreator() - Constructor for class org.codehaus.commons.compiler.util.resource.FileResourceCreator
 
FileResourceFinder - Class in org.codehaus.commons.compiler.util.resource
This class specializes the ResourceFinder for finding resources in Files.
FileResourceFinder() - Constructor for class org.codehaus.commons.compiler.util.resource.FileResourceFinder
 
FIND_NEXT_TO_SOURCE_FILE - Static variable in class org.codehaus.commons.compiler.ICompiler
findAll() - Method in class org.codehaus.commons.compiler.java9.java.lang.module.ModuleFinder
 
findResource(String) - Method in class org.codehaus.commons.compiler.util.resource.FileResourceFinder
 
findResource(String) - Method in class org.codehaus.commons.compiler.util.resource.ResourceFinder
Finds a resource by name and return it as a Resource object.
findResourceAsFile(String) - Method in class org.codehaus.commons.compiler.util.resource.DirectoryResourceFinder
 
findResourceAsFile(String) - Method in class org.codehaus.commons.compiler.util.resource.FileResourceFinder
Converts a given resource resource name into a File.
findResourceAsStream(String) - Method in class org.codehaus.commons.compiler.util.resource.ResourceFinder
Finds a resource by name and open it for reading.
forEach(Consumer<? super T>) - Method in class org.codehaus.commons.compiler.java8.java.util.stream.Stream
 
from(Object) - Static method in class org.codehaus.commons.compiler.java8.java.util.function.Consumers
 
from(Consumer<T>) - Static method in class org.codehaus.commons.compiler.java8.java.util.function.Consumers
 

G

get() - Method in class org.codehaus.commons.compiler.java8.java.util.Optional
 
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.
getDeclaredMethod(Class<?>, String, Class<?>...) - Static method in class org.codehaus.commons.compiler.util.reflect.Classes
 
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.
getFile(String) - Method in class org.codehaus.commons.compiler.util.resource.DirectoryResourceCreator
 
getFile() - Method in class org.codehaus.commons.compiler.util.resource.FileResource
 
getFile(String) - Method in class org.codehaus.commons.compiler.util.resource.FileResourceCreator
 
getFileName() - Method in class org.codehaus.commons.compiler.Location
 
getFileName() - Method in class org.codehaus.commons.compiler.util.resource.FileResource
 
getFileName() - Method in interface org.codehaus.commons.compiler.util.resource.Resource
Returns a decorative "file name" that can be used for reporting errors and the like.
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.
ICompiler - Class in org.codehaus.commons.compiler
A simplified substitute for the javac tool.
ICompiler() - Constructor for class org.codehaus.commons.compiler.ICompiler
 
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 JVM bytecode.
invoke(Method, Object, Object...) - Static method in class org.codehaus.commons.compiler.util.reflect.Methods
 
IScriptEvaluator - Interface in org.codehaus.commons.compiler
An engine that executes a script in JVM bytecode.
ISimpleCompiler - Interface in org.codehaus.commons.compiler
A simplified Java compiler that can compile only a single compilation unit.

L

lastModified() - Method in class org.codehaus.commons.compiler.util.resource.FileResource
 
lastModified() - Method in interface org.codehaus.commons.compiler.util.resource.Resource
Returns the time of the last modification, in milliseconds since 1970, or 0L if the time of the last modification cannot be determined.
list() - Method in class org.codehaus.commons.compiler.java9.java.lang.module.ModuleReader
 
load(String) - Static method in class org.codehaus.commons.compiler.util.reflect.Classes
Shorthand for load(ClassLoader.getSystemClassLoader(), className).
load(ClassLoader, String) - Static method in class org.codehaus.commons.compiler.util.reflect.Classes
 
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() - Method in class org.codehaus.commons.compiler.java9.java.lang.module.ModuleReference
 
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.CompilerDemo
Command line interface.
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
 
METHOD_accept__T - Static variable in interface org.codehaus.commons.compiler.java8.java.util.function.Consumer
 
Methods - Class in org.codehaus.commons.compiler.util.reflect
 
ModuleFinder - Class in org.codehaus.commons.compiler.java9.java.lang.module
Pre-Java-9-compatible facade for Java 9's java.lang.module.ModuleFinder class.
ModuleReader - Class in org.codehaus.commons.compiler.java9.java.lang.module
Pre-Java-9-compatible facade for Java 9's java.lang.module.ModuleReader class.
ModuleReader(Object) - Constructor for class org.codehaus.commons.compiler.java9.java.lang.module.ModuleReader
 
ModuleReference - Class in org.codehaus.commons.compiler.java9.java.lang.module
Pre-Java-9-compatible facade for Java 9's java.lang.module.ModuleReference interface.
ModuleReference(Object) - Constructor for class org.codehaus.commons.compiler.java9.java.lang.module.ModuleReference
 

N

newClassBodyEvaluator() - Method in class org.codehaus.commons.compiler.AbstractCompilerFactory
 
newClassBodyEvaluator() - Method in interface org.codehaus.commons.compiler.ICompilerFactory
 
newCompiler() - 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
 
newInstance(Object, Method...) - Static method in class org.codehaus.commons.compiler.util.reflect.Proxies
 
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
 
NO_DESTINATION_DIRECTORY - Static variable in class org.codehaus.commons.compiler.ICompiler
Special value for ICompiler.setDestinationDirectory(File)'s parameter: Indicates that .class files are to be created in the directory of the .java file from which they are generated.
NoException - Exception in org.codehaus.commons.compiler.util.reflect
An exception that is never instantiated, and is useful for declaration of methods that throw a parameterized Throwable.
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

ofSystem() - Static method in class org.codehaus.commons.compiler.java9.java.lang.module.ModuleFinder
 
open() - Method in class org.codehaus.commons.compiler.java9.java.lang.module.ModuleReference
 
open() - Method in class org.codehaus.commons.compiler.util.resource.FileResource
 
open() - Method in interface org.codehaus.commons.compiler.util.resource.Resource
Opens the resource.
Optional<T> - Class in org.codehaus.commons.compiler.java8.java.util
Pre-Java-9-compatible facade for Java 9's java.util.Optional class.
Optional(Object) - Constructor for class org.codehaus.commons.compiler.java8.java.util.Optional
 
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.java8.java.util - package org.codehaus.commons.compiler.java8.java.util
A set of (rudimentary) proxies for Java-8+ classes that also compile for Java 6 and 7.
org.codehaus.commons.compiler.java8.java.util.function - package org.codehaus.commons.compiler.java8.java.util.function
A set of (rudimentary) proxies for Java-8+ classes that also compile for Java 6 and 7.
org.codehaus.commons.compiler.java8.java.util.stream - package org.codehaus.commons.compiler.java8.java.util.stream
A set of (rudimentary) proxies for Java-8+ classes that also compile for Java 6 and 7.
org.codehaus.commons.compiler.java9.java.lang.module - package org.codehaus.commons.compiler.java9.java.lang.module
A set of (rudimentary) proxies for Java-9+ classes that also compile for Java 6-8.
org.codehaus.commons.compiler.samples - package org.codehaus.commons.compiler.samples
Sample applications for the Janino JavaTM compiler.
org.codehaus.commons.compiler.util - package org.codehaus.commons.compiler.util
 
org.codehaus.commons.compiler.util.reflect - package org.codehaus.commons.compiler.util.reflect
 
org.codehaus.commons.compiler.util.resource - package org.codehaus.commons.compiler.util.resource
Classes related to loading "resources" (ResourceFinder) and creating resources (ResourceCreator).
org.codehaus.commons.nullanalysis - package org.codehaus.commons.nullanalysis
Annotations for ECLIPSE's "null analysis" feature.

P

parseOptionalPath(String) - Static method in class org.codehaus.commons.compiler.util.StringUtil
Same as StringUtil.parsePath(String), but returns null iff s == null.
parsePath(String) - Static method in class org.codehaus.commons.compiler.util.StringUtil
Breaks a given string up by the system-dependent path-separator character (on UNIX systems, this character is ":"; on Microsoft Windows systems it is ";").
Proxies - Class in org.codehaus.commons.compiler.util.reflect
 

R

readString(Reader) - Static method in class org.codehaus.commons.compiler.Cookable
Reads all characters from the given Reader into a String.
Resource - Interface in org.codehaus.commons.compiler.util.resource
A Resource is "something" that is typically found by a ResourceFinder, can be Resource.open()ed for reading, and optionally has a Resource.lastModified() property.
ResourceCreator - Interface in org.codehaus.commons.compiler.util.resource
Opens a resource, characterized by a name, for writing.
ResourceFinder - Class in org.codehaus.commons.compiler.util.resource
Finds a resource by name.
ResourceFinder() - Constructor for class org.codehaus.commons.compiler.util.resource.ResourceFinder
 

S

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
A test program that allows you to play around with the IScriptEvaluator class.
setBootClassPath(File[]) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of --boot-class-path.
setCharacterEncoding(String) - Method in class org.codehaus.commons.compiler.ICompiler
 
setClassFileCreator(ResourceCreator) - Method in class org.codehaus.commons.compiler.ICompiler
 
setClassFileFinder(ResourceFinder) - Method in class org.codehaus.commons.compiler.ICompiler
This ResourceFinder is used to check whether a .class resource already exists and is younger than the .java resource from which it was generated.
setClassName(String) - Method in interface org.codehaus.commons.compiler.IClassBodyEvaluator
Sets the name of the generated class.
setClassPath(File[]) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of --class-path.
setCompileErrorHandler(ErrorHandler) - Method in class org.codehaus.commons.compiler.ICompiler
By default, CompileExceptions are thrown on compile errors, but an application my install its own ErrorHandler.
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.
setDebugLines(boolean) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -g:lines.
setDebugSource(boolean) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -g:source.
setDebugVars(boolean) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -g:vars.
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.
setDestinationDirectory(File) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -d.
setEncoding(Charset) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -encoding.
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
setExtensionDirectories(File[]) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -extdirs.
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.
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
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.
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
 
setRebuild(boolean) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -rebuild.
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
 
setSourceFinder(ResourceFinder) - Method in class org.codehaus.commons.compiler.ICompiler
Finds more .java resources that need to be compiled, i.e. implements the "source path".
setSourcePath(File[]) - Method in class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
 
setSourcePath(File[]) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of --source-path.
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.
setVerbose(boolean) - Method in class org.codehaus.commons.compiler.ICompiler
Equivalent of -verbose.
setWarningHandler(WarningHandler) - Method in class org.codehaus.commons.compiler.ICompiler
By default, warnings are discarded, but an application my install a custom WarningHandler.
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 IExpressionEvaluator class.
Stream<T> - Class in org.codehaus.commons.compiler.java8.java.util.stream
Pre-Java-8-compatible facade for Java 8's java.util.stream.Stream class.
Stream(Object) - Constructor for class org.codehaus.commons.compiler.java8.java.util.stream.Stream
 
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.
StringUtil - Class in org.codehaus.commons.compiler.util
 

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'.
toString() - Method in class org.codehaus.commons.compiler.util.resource.DirectoryResourceFinder
 
toString() - Method in class org.codehaus.commons.compiler.util.resource.FileResource
 

W

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

Copyright © 2020. All rights reserved.