Package pascal.taie.analysis.graph.cfg
Record Class CFGNodeIndexer<Node>
java.lang.Object
java.lang.Record
pascal.taie.analysis.graph.cfg.CFGNodeIndexer<Node>
- Type Parameters:
Node
- type of CFG nodes.
- All Implemented Interfaces:
Serializable
,Indexer<Node>
Indexer for nodes in a CFG.
- See Also:
-
Constructor Summary
ConstructorDescriptionCFGNodeIndexer
(CFG<Node> cfg) Creates an instance of aCFGNodeIndexer
record class. -
Method Summary
Modifier and TypeMethodDescriptioncfg()
Returns the value of thecfg
record component.final boolean
Indicates whether some other object is "equal to" this one.int
getObject
(int index) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CFGNodeIndexer
Creates an instance of aCFGNodeIndexer
record class.- Parameters:
cfg
- the value for thecfg
record component
-
-
Method Details
-
getIndex
-
getObject
-
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)
. -
cfg
Returns the value of thecfg
record component.- Returns:
- the value of the
cfg
record component
-