Record Class AstLexicalAccess.Access

java.lang.Object
java.lang.Record
com.ibm.wala.cast.ir.ssa.AstLexicalAccess.Access
Record Components:
variableName - name being accessed
variableDefiner - name of entity that defines the variable
type - type of the lexical value
valueNumber - 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 Details

    • Access

      public Access(String variableName, String variableDefiner, TypeReference type, int valueNumber)
      Creates an instance of a Access record class.
      Parameters:
      variableName - the value for the variableName record component
      variableDefiner - the value for the variableDefiner record component
      type - the value for the type record component
      valueNumber - the value for the valueNumber record component
  • Method Details

    • getName

      public Pair<String,String> getName()
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public boolean equals(Object other)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      other - the object with which to compare
      Returns:
      true if this object is the same as the other argument; false otherwise.
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • variableName

      public String variableName()
      Returns the value of the variableName record component.
      Returns:
      the value of the variableName record component
    • variableDefiner

      public String variableDefiner()
      Returns the value of the variableDefiner record component.
      Returns:
      the value of the variableDefiner record component
    • type

      public TypeReference type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • valueNumber

      public int valueNumber()
      Returns the value of the valueNumber record component.
      Returns:
      the value of the valueNumber record component