Enum Class Option.CompilerMode
- All Implemented Interfaces:
Serializable
,Comparable<Option.CompilerMode>
,Constable
- Enclosing class:
Option
The Compiler Modes.
- Author:
- Øystein Myhre Andersen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGenerate JavaClass files directly.Generate ClassFile byte array and load it directly.Generate Java source and use Java compiler to generate JavaClass files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Option.CompilerMode
Returns the enum constant of this class with the specified name.static Option.CompilerMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
viaJavaSource
Generate Java source and use Java compiler to generate JavaClass files. -
directClassFiles
Generate JavaClass files directly. No Java source files are generated. -
simulaClassLoader
Generate ClassFile byte array and load it directly. No intermediate files are created.
-
-
Constructor Details
-
CompilerMode
private CompilerMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-