Package net.bytebuddy.implementation
Enum Class EqualsMethod.ValueComparator
java.lang.Object
java.lang.Enum<EqualsMethod.ValueComparator>
net.bytebuddy.implementation.EqualsMethod.ValueComparator
- All Implemented Interfaces:
Serializable
,Comparable<EqualsMethod.ValueComparator>
,Constable
,StackManipulation
- Enclosing class:
- EqualsMethod
protected static enum EqualsMethod.ValueComparator
extends Enum<EqualsMethod.ValueComparator>
implements StackManipulation
A value comparator is responsible to compare to values of a given type.
-
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.bytecode.StackManipulation
StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA comparator for aboolean[]
value.A comparator for abyte[]
value.A comparator for achar[]
value.A comparator for adouble
value.A transformer for adouble[]
value.A comparator for afloat
value.A comparator for afloat[]
value.A comparator for anint[]
value.A comparator for along
value.A comparator for along[]
value.A transformer for a nested reference array value.A transformer for a reference array value.A comparator for ashort[]
value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid()
Determines if this stack manipulation is valid.static StackManipulation
of
(TypeDefinition typeDefinition) Resolves a type definition to a equality comparison.static EqualsMethod.ValueComparator
Returns the enum constant of this class with the specified name.static EqualsMethod.ValueComparator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
apply
-
Enum Constant Details
-
LONG
A comparator for along
value. -
FLOAT
A comparator for afloat
value. -
DOUBLE
A comparator for adouble
value. -
BOOLEAN_ARRAY
A comparator for aboolean[]
value. -
BYTE_ARRAY
A comparator for abyte[]
value. -
SHORT_ARRAY
A comparator for ashort[]
value. -
CHARACTER_ARRAY
A comparator for achar[]
value. -
INTEGER_ARRAY
A comparator for anint[]
value. -
LONG_ARRAY
A comparator for along[]
value. -
FLOAT_ARRAY
A comparator for afloat[]
value. -
DOUBLE_ARRAY
A transformer for adouble[]
value. -
REFERENCE_ARRAY
A transformer for a reference array value. -
NESTED_ARRAY
A transformer for a nested reference array value.
-
-
Constructor Details
-
ValueComparator
private ValueComparator()
-
-
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
-
of
Resolves a type definition to a equality comparison.- Parameters:
typeDefinition
- The type definition to resolve.- Returns:
- The stack manipulation to apply.
-
isValid
public boolean isValid()Determines if this stack manipulation is valid.- Specified by:
isValid
in interfaceStackManipulation
- Returns:
- If
false
, this manipulation cannot be applied and should throw an exception.
-