Record Class AstLexicalAccess.Access
java.lang.Object
java.lang.Record
com.ibm.wala.cast.ir.ssa.AstLexicalAccess.Access
- Record Components:
variableName- name being accessedvariableDefiner- name of entity that defines the variabletype- type of the lexical valuevalueNumber- value number used for name where access is being performed (not in the declaring entity)
- Enclosing class:
AstLexicalAccess
public static record AstLexicalAccess.Access(String variableName, String variableDefiner, TypeReference type, int valueNumber)
extends Record
A single lexical access.
- Author:
- Julian Dolby (dolby@us.ibm.com)
-
Constructor Summary
ConstructorsConstructorDescriptionAccess(String variableName, String variableDefiner, TypeReference type, int valueNumber) Creates an instance of aAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getName()inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intReturns the value of thevalueNumberrecord component.Returns the value of thevariableDefinerrecord component.Returns the value of thevariableNamerecord component.
-
Constructor Details
-
Access
Creates an instance of aAccessrecord class.- Parameters:
variableName- the value for thevariableNamerecord componentvariableDefiner- the value for thevariableDefinerrecord componenttype- the value for thetyperecord componentvalueNumber- the value for thevalueNumberrecord component
-
-
Method Details
-
getName
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
toString
-
variableName
Returns the value of thevariableNamerecord component.- Returns:
- the value of the
variableNamerecord component
-
variableDefiner
Returns the value of thevariableDefinerrecord component.- Returns:
- the value of the
variableDefinerrecord component
-
type
-
valueNumber
public int valueNumber()Returns the value of thevalueNumberrecord component.- Returns:
- the value of the
valueNumberrecord component
-