public static enum CompilerConfiguration.CompilerReuseStrategy extends Enum<CompilerConfiguration.CompilerReuseStrategy>
Enum Constant and Description |
---|
AlwaysNew
re create a new compiler for each use
|
ReuseCreated
re use already created compiler, create new one if non already exists
Will mimic a kind of pool to prevent different threads use the same
|
ReuseSame
always reuse the same
default strategy
|
Modifier and Type | Method and Description |
---|---|
String |
getStrategy() |
String |
toString() |
static CompilerConfiguration.CompilerReuseStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompilerConfiguration.CompilerReuseStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompilerConfiguration.CompilerReuseStrategy ReuseSame
public static final CompilerConfiguration.CompilerReuseStrategy AlwaysNew
public static final CompilerConfiguration.CompilerReuseStrategy ReuseCreated
public static CompilerConfiguration.CompilerReuseStrategy[] values()
for (CompilerConfiguration.CompilerReuseStrategy c : CompilerConfiguration.CompilerReuseStrategy.values()) System.out.println(c);
public static CompilerConfiguration.CompilerReuseStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getStrategy()
public String toString()
toString
in class Enum<CompilerConfiguration.CompilerReuseStrategy>
Copyright © 2017. All rights reserved.