Package org.openjdk.jmh.annotations
Enum CompilerControl.Mode
- java.lang.Object
-
- java.lang.Enum<CompilerControl.Mode>
-
- org.openjdk.jmh.annotations.CompilerControl.Mode
-
- All Implemented Interfaces:
Serializable,Comparable<CompilerControl.Mode>
- Enclosing class:
- CompilerControl
public static enum CompilerControl.Mode extends Enum<CompilerControl.Mode>
Compilation mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BREAKInsert the breakpoint into the generated compiled code.COMPILE_ONLYCompile only this method, and nothing else.DONT_INLINEForce skip inline.EXCLUDEExclude the method from the compilation.INLINEForce inline.PRINTPrint the method and it's profile.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcommand()static CompilerControl.ModevalueOf(String name)Returns the enum constant of this type with the specified name.static CompilerControl.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BREAK
public static final CompilerControl.Mode BREAK
Insert the breakpoint into the generated compiled code.
-
PRINT
public static final CompilerControl.Mode PRINT
Print the method and it's profile.
-
EXCLUDE
public static final CompilerControl.Mode EXCLUDE
Exclude the method from the compilation.
-
INLINE
public static final CompilerControl.Mode INLINE
Force inline.
-
DONT_INLINE
public static final CompilerControl.Mode DONT_INLINE
Force skip inline.
-
COMPILE_ONLY
public static final CompilerControl.Mode COMPILE_ONLY
Compile only this method, and nothing else.
-
-
Method Detail
-
values
public static CompilerControl.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompilerControl.Mode c : CompilerControl.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompilerControl.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
command
public String command()
-
-