org.apache.sling.commons.compiler
Class Options

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.Object>
          extended by org.apache.sling.commons.compiler.Options
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class Options
extends java.util.HashMap<java.lang.String,java.lang.Object>

Options for the compilation process.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static java.lang.String KEY_ADDITIONAL_CLASS_LOADER
          The key for the additional class loader.
static java.lang.String KEY_CLASS_LOADER
          The key for the class loader.
static java.lang.String KEY_CLASS_LOADER_WRITER
          The key for the class loader writer.
static java.lang.String KEY_FORCE_COMPILATION
          The key to force the compilation - even if the class files are more recent.
static java.lang.String KEY_GENERATE_DEBUG_INFO
          The key for the generate debug info flag.
static java.lang.String KEY_IGNORE_WARNINGS
          The key to ignore warnings - if this option is turned on, the resulting compilation result does not get the warnings issued by the compiler.
static java.lang.String KEY_SOURCE_VERSION
          The key for the source version.
static java.lang.String KEY_TARGET_VERSION
          The key for the target version.
static java.lang.String VERSION_1_1
           
static java.lang.String VERSION_1_2
           
static java.lang.String VERSION_1_3
           
static java.lang.String VERSION_1_4
           
static java.lang.String VERSION_1_5
           
static java.lang.String VERSION_1_6
           
static java.lang.String VERSION_1_7
           
static java.lang.String VERSION_RUNTIME
           
 
Constructor Summary
Options()
          Default options with the following presets: - generate debug info : true
Options(Options options)
          Create a new options object based on an existing one.
 
Method Summary
 java.lang.String getSourceVersion()
           
 java.lang.String getTargetVersion()
           
 boolean isGenerateDebugInfo()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

KEY_SOURCE_VERSION

public static final java.lang.String KEY_SOURCE_VERSION
The key for the source version.

See Also:
Constant Field Values

KEY_TARGET_VERSION

public static final java.lang.String KEY_TARGET_VERSION
The key for the target version.

See Also:
Constant Field Values

KEY_GENERATE_DEBUG_INFO

public static final java.lang.String KEY_GENERATE_DEBUG_INFO
The key for the generate debug info flag.

See Also:
Constant Field Values

VERSION_RUNTIME

public static final java.lang.String VERSION_RUNTIME

VERSION_1_1

public static final java.lang.String VERSION_1_1
See Also:
Constant Field Values

VERSION_1_2

public static final java.lang.String VERSION_1_2
See Also:
Constant Field Values

VERSION_1_3

public static final java.lang.String VERSION_1_3
See Also:
Constant Field Values

VERSION_1_4

public static final java.lang.String VERSION_1_4
See Also:
Constant Field Values

VERSION_1_5

public static final java.lang.String VERSION_1_5
See Also:
Constant Field Values

VERSION_1_6

public static final java.lang.String VERSION_1_6
See Also:
Constant Field Values

VERSION_1_7

public static final java.lang.String VERSION_1_7
See Also:
Constant Field Values

KEY_CLASS_LOADER_WRITER

public static final java.lang.String KEY_CLASS_LOADER_WRITER
The key for the class loader writer. By default the registered class loader writer service is used.

See Also:
Constant Field Values

KEY_CLASS_LOADER

public static final java.lang.String KEY_CLASS_LOADER
The key for the class loader. By default the commons dynamic classloader is used. This property overrides the classloader and ignores the KEY_ADDITIONAL_CLASS_LOADER completly!

See Also:
Constant Field Values

KEY_ADDITIONAL_CLASS_LOADER

public static final java.lang.String KEY_ADDITIONAL_CLASS_LOADER
The key for the additional class loader. By default the commons dynamic classloader is used. If this property is used and the KEY_CLASS_LOADER property is not defined, a classloader with the dynamic class loader (default) and the class loader specified here is used.

See Also:
Constant Field Values

KEY_FORCE_COMPILATION

public static final java.lang.String KEY_FORCE_COMPILATION
The key to force the compilation - even if the class files are more recent. The value should be of type Boolean.

See Also:
Constant Field Values

KEY_IGNORE_WARNINGS

public static final java.lang.String KEY_IGNORE_WARNINGS
The key to ignore warnings - if this option is turned on, the resulting compilation result does not get the warnings issued by the compiler. The value should be of type Boolean.

See Also:
Constant Field Values
Constructor Detail

Options

public Options()
Default options with the following presets: - generate debug info : true


Options

public Options(Options options)
Create a new options object based on an existing one.

Method Detail

getSourceVersion

public java.lang.String getSourceVersion()

getTargetVersion

public java.lang.String getTargetVersion()
Since:
2.0

isGenerateDebugInfo

public boolean isGenerateDebugInfo()


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