Enum Class InvocationPlan.Receiver
java.lang.Object
java.lang.Enum<InvocationPlan.Receiver>
io.micronaut.sourcegen.bytecode.core.InvocationPlan.Receiver
- All Implemented Interfaces:
Serializable, Comparable<InvocationPlan.Receiver>, Constable
- Enclosing class:
InvocationPlan
What happens to the receiver of an invocation once it is written.
- Since:
- 2.3
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe receiver is cast to the bound declaring the method,InvocationPlan.receiverCast().The receiver of a static method is evaluated and discarded.The receiver is the one the method is invoked on.The invocation has no receiver the writer writes: a static call, or a constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic InvocationPlan.ReceiverReturns the enum constant of this class with the specified name.static InvocationPlan.Receiver[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The invocation has no receiver the writer writes: a static call, or a constructor. -
KEEP
The receiver is the one the method is invoked on. -
CAST
The receiver is cast to the bound declaring the method,InvocationPlan.receiverCast(). -
DISCARD
The receiver of a static method is evaluated and discarded.
-
-
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
-