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:
java.io.Serializable
,java.lang.Comparable<CompilerControl.Mode>
- Enclosing class:
- CompilerControl
public static enum CompilerControl.Mode extends java.lang.Enum<CompilerControl.Mode>
Compilation mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BREAK
Insert the breakpoint into the generated compiled code.COMPILE_ONLY
Compile only this method, and nothing else.DONT_INLINE
Force skip inline.EXCLUDE
Exclude the method from the compilation.INLINE
Force inline.PRINT
Print the method and it's profile.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
command
-
Constructor Summary
Constructors Modifier Constructor Description private
Mode(java.lang.String command)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
command()
static CompilerControl.Mode
valueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
command
public java.lang.String command()
-
-