C D E F G I J K L O V

C

CompilationResult - Interface in org.apache.sling.commons.compiler
The compilation result allows clients of the java compiler to check for error messages, warnings (if not disabled by the options) and allows to access the compiled classes.
CompilationResultImpl - Class in org.apache.sling.commons.compiler.impl
Implementation of the compilation result
CompilationResultImpl(String) - Constructor for class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 
CompilationResultImpl(ClassLoaderWriter) - Constructor for class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 
CompilationResultImpl(boolean, ClassLoaderWriter) - Constructor for class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 
CompilationUnit - Interface in org.apache.sling.commons.compiler
This interface describes a compilation unit - usually a java class.
compile(CompilationUnit[], Options) - Method in class org.apache.sling.commons.compiler.impl.EclipseJavaCompiler
 
compile(CompilationUnit[], Options) - Method in interface org.apache.sling.commons.compiler.JavaCompiler
Compile the compilation units.
CompilerMessage - Class in org.apache.sling.commons.compiler
This class encapsulates a message produced the compiler.
CompilerMessage(String, int, int, String) - Constructor for class org.apache.sling.commons.compiler.CompilerMessage
The error message constructor.

D

didCompile() - Method in interface org.apache.sling.commons.compiler.CompilationResult
Was a compilation required or were all classes recent?
didCompile() - Method in class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 

E

EclipseJavaCompiler - Class in org.apache.sling.commons.compiler.impl
The EclipseJavaCompiler provides platform independant Java compilation support using the Eclipse Java Compiler (org.eclipse.jdt).
EclipseJavaCompiler() - Constructor for class org.apache.sling.commons.compiler.impl.EclipseJavaCompiler
 

F

findClass(String) - Method in class org.apache.sling.commons.compiler.impl.IsolatedClassLoader
Finds and loads the class with the specified name from the class path.

G

getColumn() - Method in class org.apache.sling.commons.compiler.CompilerMessage
Return the column number of the program text originating this message
getErrors() - Method in interface org.apache.sling.commons.compiler.CompilationResult
Return a list of error messages that occured during compilation.
getErrors() - Method in class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 
getFile() - Method in class org.apache.sling.commons.compiler.CompilerMessage
Return the filename associated with this compiler message.
getLastModified() - Method in interface org.apache.sling.commons.compiler.CompilationUnit
Return the last modified for the compilation unit.
getLine() - Method in class org.apache.sling.commons.compiler.CompilerMessage
Return the line number of the program text originating this message
getMainClassName() - Method in interface org.apache.sling.commons.compiler.CompilationUnit
Returns the name of the top level public type.
getMessage() - Method in class org.apache.sling.commons.compiler.CompilerMessage
Return the message
getSource() - Method in interface org.apache.sling.commons.compiler.CompilationUnit
Return an input stream for the contents.
getSourceVersion() - Method in class org.apache.sling.commons.compiler.Options
 
getTargetVersion() - Method in class org.apache.sling.commons.compiler.Options
 
getWarnings() - Method in interface org.apache.sling.commons.compiler.CompilationResult
Return a list of warnings that occured during compilation.
getWarnings() - Method in class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 

I

isGenerateDebugInfo() - Method in class org.apache.sling.commons.compiler.Options
 
IsolatedClassLoader - Class in org.apache.sling.commons.compiler.impl
The IsolatedClassLoader class loads classes through the class loader writer
IsolatedClassLoader(ClassLoader, ClassLoaderWriter) - Constructor for class org.apache.sling.commons.compiler.impl.IsolatedClassLoader
 

J

JavaCompiler - Interface in org.apache.sling.commons.compiler
The JavaCompiler provides platform independant Java compilation support.

K

KEY_ADDITIONAL_CLASS_LOADER - Static variable in class org.apache.sling.commons.compiler.Options
The key for the additional class loader.
KEY_CLASS_LOADER - Static variable in class org.apache.sling.commons.compiler.Options
The key for the class loader.
KEY_CLASS_LOADER_WRITER - Static variable in class org.apache.sling.commons.compiler.Options
The key for the class loader writer.
KEY_FORCE_COMPILATION - Static variable in class org.apache.sling.commons.compiler.Options
The key to force the compilation - even if the class files are more recent.
KEY_GENERATE_DEBUG_INFO - Static variable in class org.apache.sling.commons.compiler.Options
The key for the generate debug info flag.
KEY_IGNORE_WARNINGS - Static variable in class org.apache.sling.commons.compiler.Options
The key to ignore warnings - if this option is turned on, the resulting compilation result does not get the warnings issued by the compiler.
KEY_SOURCE_VERSION - Static variable in class org.apache.sling.commons.compiler.Options
The key for the source version.
KEY_TARGET_VERSION - Static variable in class org.apache.sling.commons.compiler.Options
The key for the target version.

L

loadClass(String, boolean) - Method in class org.apache.sling.commons.compiler.impl.IsolatedClassLoader
Loads the class from this ClassLoader.
loadCompiledClass(String) - Method in interface org.apache.sling.commons.compiler.CompilationResult
Try to load the compiled class.
loadCompiledClass(String) - Method in class org.apache.sling.commons.compiler.impl.CompilationResultImpl
 

O

onError(String, String, int, int) - Method in class org.apache.sling.commons.compiler.impl.CompilationResultImpl
Notification of an error
onWarning(String, String, int, int) - Method in class org.apache.sling.commons.compiler.impl.CompilationResultImpl
Notification of a warning
Options - Class in org.apache.sling.commons.compiler
Options for the compilation process.
Options() - Constructor for class org.apache.sling.commons.compiler.Options
Default options with the following presets: - generate debug info : true
Options(Options) - Constructor for class org.apache.sling.commons.compiler.Options
Create a new options object based on an existing one.
org.apache.sling.commons.compiler - package org.apache.sling.commons.compiler
 
org.apache.sling.commons.compiler.impl - package org.apache.sling.commons.compiler.impl
 

V

VERSION_1_1 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_1_2 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_1_3 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_1_4 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_1_5 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_1_6 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_1_7 - Static variable in class org.apache.sling.commons.compiler.Options
 
VERSION_RUNTIME - Static variable in class org.apache.sling.commons.compiler.Options
 

C D E F G I J K L O V

Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.