Package net.bytebuddy.implementation
Enum Class HashCodeMethod.OffsetProvider.ForStaticTypeHash
java.lang.Object
java.lang.Enum<HashCodeMethod.OffsetProvider.ForStaticTypeHash>
net.bytebuddy.implementation.HashCodeMethod.OffsetProvider.ForStaticTypeHash
- All Implemented Interfaces:
Serializable
,Comparable<HashCodeMethod.OffsetProvider.ForStaticTypeHash>
,Constable
,HashCodeMethod.OffsetProvider
- Enclosing interface:
- HashCodeMethod.OffsetProvider
public static enum HashCodeMethod.OffsetProvider.ForStaticTypeHash
extends Enum<HashCodeMethod.OffsetProvider.ForStaticTypeHash>
implements HashCodeMethod.OffsetProvider
An offset provider that uses the instrumented type's class constant's hash code.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.HashCodeMethod.OffsetProvider
HashCodeMethod.OffsetProvider.ForDynamicTypeHash, HashCodeMethod.OffsetProvider.ForFixedValue, HashCodeMethod.OffsetProvider.ForStaticTypeHash, HashCodeMethod.OffsetProvider.ForSuperMethodCall
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription instrumentedType) Resolves this offset provider for a given instrumented type.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForStaticTypeHash
private ForStaticTypeHash()
-
-
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
-
resolve
Resolves this offset provider for a given instrumented type.- Specified by:
resolve
in interfaceHashCodeMethod.OffsetProvider
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A stack manipulation that loads the initial hash code onto the operand stack.
-