Enum Class ParseWorkload.PredictionStrategy
java.lang.Object
java.lang.Enum<ParseWorkload.PredictionStrategy>
org.antlr.v4.test.runtime.java.api.perf.jmh.ParseWorkload.PredictionStrategy
- All Implemented Interfaces:
Serializable,Comparable<ParseWorkload.PredictionStrategy>,Constable
- Enclosing class:
- ParseWorkload
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSingle-stage LL.Warm SLL throughProfilingATNSimulator(Parser.setProfile(boolean)).Single-stage SLL only (BailErrorStrategy).Two-stage: SLL+Bail, retry full LL on cancellation (production default). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ParseWorkload.PredictionStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLL
Single-stage SLL only (BailErrorStrategy). -
LL
Single-stage LL. -
TWO_STAGE
Two-stage: SLL+Bail, retry full LL on cancellation (production default). -
PROFILING
Warm SLL throughProfilingATNSimulator(Parser.setProfile(boolean)). ForcesgetStartStateon every decision so A/B can measure the snapshot path independently of the production inlined-s0walk.
-
-
Constructor Details
-
PredictionStrategy
private PredictionStrategy()
-
-
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
-