Record Class AnnotationsReader.EnumElementValue
java.lang.Object
java.lang.Record
com.ibm.wala.shrike.shrikeCT.AnnotationsReader.EnumElementValue
- Record Components:
enumType- the name of the enum typeenumVal- the enum value
- All Implemented Interfaces:
AnnotationsReader.ElementValue
- Enclosing class:
AnnotationsReader
public static record AnnotationsReader.EnumElementValue(String enumType, String enumVal)
extends Record
implements AnnotationsReader.ElementValue
Represents enum constant annotation arguments.
- Author:
- sjfink
-
Constructor Summary
ConstructorsConstructorDescriptionEnumElementValue(String enumType, String enumVal) Creates an instance of aEnumElementValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionenumType()Returns the value of theenumTyperecord component.enumVal()Returns the value of theenumValrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
EnumElementValue
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enumType
-
enumVal
-