Package net.bytebuddy.dynamic.scaffold
Enum Class TypeWriter.MethodPool.Record.Sort
java.lang.Object
java.lang.Enum<TypeWriter.MethodPool.Record.Sort>
net.bytebuddy.dynamic.scaffold.TypeWriter.MethodPool.Record.Sort
- All Implemented Interfaces:
Serializable
,Comparable<TypeWriter.MethodPool.Record.Sort>
,Constable
- Enclosing interface:
- TypeWriter.MethodPool.Record
public static enum TypeWriter.MethodPool.Record.Sort
extends Enum<TypeWriter.MethodPool.Record.Sort>
The sort of an entry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDescribes a method that should be defined but is abstract or native, i.e.Describes a method that is implemented in byte code.Describes a method that should not be implemented or retained in its original state. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Sort
(boolean define, boolean implement) Creates a new sort. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if this sort defines a method, with or without byte code.boolean
Indicates if this sort defines byte code.Returns the enum constant of this class with the specified name.static TypeWriter.MethodPool.Record.Sort[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIPPED
Describes a method that should not be implemented or retained in its original state. -
DEFINED
Describes a method that should be defined but is abstract or native, i.e. does not define any byte code. -
IMPLEMENTED
Describes a method that is implemented in byte code.
-
-
Field Details
-
define
private final boolean defineIndicates if this sort defines a method, with or without byte code. -
implement
private final boolean implementIndicates if this sort defines byte code.
-
-
Constructor Details
-
Sort
private Sort(boolean define, boolean implement) Creates a new sort.- Parameters:
define
- Indicates if this sort defines a method, with or without byte code.implement
- Indicates if this sort defines byte code.
-
-
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
-
isDefined
public boolean isDefined()Indicates if this sort defines a method, with or without byte code.- Returns:
true
if this sort defines a method, with or without byte code.
-
isImplemented
public boolean isImplemented()Indicates if this sort defines byte code.- Returns:
true
if this sort defines byte code.
-