Record Class FilteredPointerKey.SingleClassFilter

java.lang.Object
java.lang.Record
com.ibm.wala.ipa.callgraph.propagation.FilteredPointerKey.SingleClassFilter
All Implemented Interfaces:
ContextItem, FilteredPointerKey.TypeFilter
Enclosing interface:
FilteredPointerKey

public static record FilteredPointerKey.SingleClassFilter(IClass concreteType) extends Record implements FilteredPointerKey.TypeFilter
  • Constructor Details

    • SingleClassFilter

      public SingleClassFilter(IClass concreteType)
      Creates an instance of a SingleClassFilter record class.
      Parameters:
      concreteType - the value for the concreteType record component
  • Method Details

    • 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
    • getConcreteType

      @Deprecated(forRemoval=true, since="1.8.0") public IClass getConcreteType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use concreteType() instead
    • addFiltered

      public boolean addFiltered(PropagationSystem system, PointsToSetVariable L, PointsToSetVariable R)
      Specified by:
      addFiltered in interface FilteredPointerKey.TypeFilter
    • addInverseFiltered

      public boolean addInverseFiltered(PropagationSystem system, PointsToSetVariable L, PointsToSetVariable R)
      Specified by:
      addInverseFiltered in interface FilteredPointerKey.TypeFilter
    • isRootFilter

      public boolean isRootFilter()
      Specified by:
      isRootFilter in interface FilteredPointerKey.TypeFilter
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • concreteType

      public IClass concreteType()
      Returns the value of the concreteType record component.
      Returns:
      the value of the concreteType record component