Enum Class TypeOccurrenceKind
- All Implemented Interfaces:
Serializable
,Comparable<TypeOccurrenceKind>
,Constable
Types can occurr in different kinds of positions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe declared type of the LHS of an assignment or compound assignment tree.The type of the RHS of an assignment or compound assignment tree.The declared type of the tree.The type of the tree at its use site. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeOccurrenceKind
Returns the enum constant of this class with the specified name.static TypeOccurrenceKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USE_TYPE
The type of the tree at its use site. -
DECLARED_TYPE
The declared type of the tree. For a method, it should be the method's signature. For a field, it should be the type of the field in its declaration. -
ASSIGN_LHS_DECLARED_TYPE
The declared type of the LHS of an assignment or compound assignment tree. -
ASSIGN_RHS_TYPE
The type of the RHS of an assignment or compound assignment tree.For a postfix operation, it can be considered as a special assignment tree, in which the LHS is returned and the RHS is the new value of the variable. In this situation, this message kind means the type of the new value of the variable.
-
-
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
-