Record Class ClassLoaderReference

java.lang.Object
java.lang.Record
com.ibm.wala.types.ClassLoaderReference
Record Components:
name - A String which identifies this loader
language - A String which identifies the language for this loader
parent - This class loader's parent
All Implemented Interfaces:
Serializable

public record ClassLoaderReference(Atom name, Atom language, ClassLoaderReference parent) extends Record implements Serializable
Defines the meta-information that identifies a class loader. This is effectively a "name" for a class loader.
See Also:
  • Field Details

    • Java

      public static final Atom Java
      Canonical name for the Java language
    • Primordial

      public static final ClassLoaderReference Primordial
      Canonical reference to primordial class loader
    • Extension

      public static final ClassLoaderReference Extension
      Canonical reference to extension class loader
    • Application

      public static final ClassLoaderReference Application
      Canonical reference to application class loader
  • Constructor Details

    • ClassLoaderReference

      public ClassLoaderReference(Atom name, Atom language, ClassLoaderReference parent)
      Creates an instance of a ClassLoaderReference record class.
      Parameters:
      name - the value for the name record component
      language - the value for the language record component
      parent - the value for the parent record component
  • Method Details

    • getName

      @Deprecated(forRemoval=true, since="1.8.0") public Atom getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use name() instead
    • getLanguage

      @Deprecated(forRemoval=true, since="1.8.0") public Atom getLanguage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use language() instead
    • getParent

      @Deprecated(forRemoval=true, since="1.8.0") public ClassLoaderReference getParent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use parent() instead
    • equals

      public boolean equals(Object obj)
      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:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • 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
    • 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
    • name

      public Atom name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • language

      public Atom language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • parent

      public ClassLoaderReference parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component