C D E G I J K L M O U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
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.
- CompilationUnit - Interface in org.apache.sling.commons.compiler
-
This interface describes a compilation unit - usually a java class.
- CompilationUnitWithSource - Interface in org.apache.sling.commons.compiler
-
Extension of the CompilationUnit interface which allows for the explicit declaration of the source file name.
- 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?
E
- escapeChar(char) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Escapes the provided character so that it's a valid Java identifier character.
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.
- getFile() - Method in class org.apache.sling.commons.compiler.CompilerMessage
-
Return the filename associated with this compiler message.
- getFileName() - Method in interface org.apache.sling.commons.compiler.CompilationUnitWithSource
- getJavaIdentifier(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Converts the given identifier to a legal Java identifier.
- 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 a reader for the contents.
- getSourceVersion() - Method in class org.apache.sling.commons.compiler.Options
-
Get the source version.
- getTargetVersion() - Method in class org.apache.sling.commons.compiler.Options
-
Get the target version.
- getWarnings() - Method in interface org.apache.sling.commons.compiler.CompilationResult
-
Return a list of warnings that occured during compilation.
I
- isGenerateDebugInfo() - Method in class org.apache.sling.commons.compiler.Options
-
Should debug info be generated?
- isJavaKeyword(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Test whether the argument is a Java keyword, according to the Java Language Specification.
- isJavaLiteral(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Test whether the argument is a Java literal, according to the Java Language Specification..
- isSpecialIdentifier(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Test whether the argument is a special identifier, according to the Java Language Specification.
J
- JavaCompiler - Interface in org.apache.sling.commons.compiler
-
The
JavaCompiler
provides platform independant Java compilation support. - JavaEscapeHelper - Class in org.apache.sling.commons.compiler.source
-
The
JavaEscapeHelper
class provides various methods which can be used to generate valid Java identifiers or package / class names, especially when generating them from a transcompiler.
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
- loadCompiledClass(String) - Method in interface org.apache.sling.commons.compiler.CompilationResult
-
Try to load the compiled class.
M
- makeJavaPackage(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Converts the given
path
to a Java package or fully-qualified class name, depending on thepath
's value.
O
- 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.source - package org.apache.sling.commons.compiler.source
U
- unescape(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Returns the original character that was escaped, given an
escapeSequence
. - unescapeAll(String) - Static method in class org.apache.sling.commons.compiler.source.JavaEscapeHelper
-
Provided a string which could contain escape sequences generated through
escapeChar(char)
, this method will unescape all such sequences.
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_1_8 - Static variable in class org.apache.sling.commons.compiler.Options
- VERSION_RUNTIME - Static variable in class org.apache.sling.commons.compiler.Options
All Classes All Packages