Package net.bytebuddy.asm
Enum Advice.AssignReturned.DefaultValueSkip.Dispatcher
- java.lang.Object
-
- java.lang.Enum<Advice.AssignReturned.DefaultValueSkip.Dispatcher>
-
- net.bytebuddy.asm.Advice.AssignReturned.DefaultValueSkip.Dispatcher
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.AssignReturned.DefaultValueSkip.Dispatcher>
- Enclosing class:
- Advice.AssignReturned.DefaultValueSkip
protected static enum Advice.AssignReturned.DefaultValueSkip.Dispatcher extends java.lang.Enum<Advice.AssignReturned.DefaultValueSkip.Dispatcher>
A dispatcher for skipping a default value.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Dispatcher()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StackManipulation.Size
apply(org.objectweb.asm.MethodVisitor methodVisitor, int offset, org.objectweb.asm.Label label)
Applies this jump.static Advice.AssignReturned.DefaultValueSkip.Dispatcher
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.AssignReturned.DefaultValueSkip.Dispatcher[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final Advice.AssignReturned.DefaultValueSkip.Dispatcher INTEGER
A dispatcher for integer types.
-
LONG
public static final Advice.AssignReturned.DefaultValueSkip.Dispatcher LONG
A dispatcher forlong
.
-
FLOAT
public static final Advice.AssignReturned.DefaultValueSkip.Dispatcher FLOAT
A dispatcher forfloat
.
-
DOUBLE
public static final Advice.AssignReturned.DefaultValueSkip.Dispatcher DOUBLE
A dispatcher fordouble
.
-
REFERENCE
public static final Advice.AssignReturned.DefaultValueSkip.Dispatcher REFERENCE
A dispatcher for reference types.
-
-
Method Detail
-
values
public static Advice.AssignReturned.DefaultValueSkip.Dispatcher[] 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 (Advice.AssignReturned.DefaultValueSkip.Dispatcher c : Advice.AssignReturned.DefaultValueSkip.Dispatcher.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.AssignReturned.DefaultValueSkip.Dispatcher 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
-
apply
protected abstract StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, int offset, org.objectweb.asm.Label label)
Applies this jump.- Parameters:
methodVisitor
- The method visitor to use.offset
- The offset of the advice return value.label
- The label to jump to if a default value is discovered.- Returns:
- The size of this instruction.
-
-