Enum Class InferenceVisitorMode
- All Implemented Interfaces:
Serializable,Comparable<InferenceVisitorMode>,Constable
Multiple phases are required to calculate the final (compile-time)
type of some expressions.
This lists the different phases.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChecks if an expression is pertinent to applicability.Checks for expression compatibility with a target type.Tries to calculate the compile-time type. -
Method Summary
Modifier and TypeMethodDescriptionstatic InferenceVisitorModeReturns the enum constant of this class with the specified name.static InferenceVisitorMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLICABILITY_TEST
Checks if an expression is pertinent to applicability. S. Java language specification 21 15.12.2.2. -
EXPRESSION_COMPATIBILITY_REDUCTION
Checks for expression compatibility with a target type. The target type may contain free type variables, thus, it cannot be used (in every case) to calculate the compile-time type. S. Java language specification 21 18.5.2.1 -
TYPE_CHECKING
Tries to calculate the compile-time type. This is the default mode.
-
-
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
-