Record Class IndexRef
java.lang.Object
java.lang.Record
pascal.taie.analysis.pta.plugin.taint.IndexRef
- All Implemented Interfaces:
Comparable<IndexRef>
public record IndexRef(IndexRef.Kind kind, int index, @Nullable JField field)
extends Record
implements Comparable<IndexRef>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionIndexRef
(IndexRef.Kind kind, int index, JField field) Creates an instance of aIndexRef
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
final boolean
Indicates whether some other object is "equal to" this one.field()
Returns the value of thefield
record component.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.kind()
Returns the value of thekind
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
IndexRef
Creates an instance of aIndexRef
record class.- Parameters:
kind
- the value for thekind
record componentindex
- the value for theindex
record componentfield
- the value for thefield
record component
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IndexRef>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
kind
Returns the value of thekind
record component.- Returns:
- the value of the
kind
record component
-
index
public int index()Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-
field
Returns the value of thefield
record component.- Returns:
- the value of the
field
record component
-