Record Class FieldSourcePoint
java.lang.Object
java.lang.Record
pascal.taie.analysis.pta.plugin.taint.FieldSourcePoint
- All Implemented Interfaces:
Comparable<SourcePoint>
,SourcePoint
public record FieldSourcePoint(JMethod container, LoadField loadField)
extends Record
implements SourcePoint
-
Constructor Summary
ConstructorDescriptionFieldSourcePoint
(JMethod container, LoadField loadField) Creates an instance of aFieldSourcePoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(SourcePoint sp) Returns the value of thecontainer
record component.final boolean
Indicates whether some other object is "equal to" this one.int
The sort order of the source point.final int
hashCode()
Returns a hash code value for this object.Returns the value of theloadField
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
FieldSourcePoint
Creates an instance of aFieldSourcePoint
record class.- Parameters:
container
- the value for thecontainer
record componentloadField
- the value for theloadField
record component
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SourcePoint>
-
getContainer
- Specified by:
getContainer
in interfaceSourcePoint
-
getPriority
public int getPriority()Description copied from interface:SourcePoint
The sort order of the source point.- Specified by:
getPriority
in interfaceSourcePoint
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
container
Returns the value of thecontainer
record component.- Returns:
- the value of the
container
record component
-
loadField
Returns the value of theloadField
record component.- Returns:
- the value of the
loadField
record component
-