Class ClassInformation

java.lang.Object
com.offbynull.coroutines.instrumenter.asm.ClassInformation

public final class ClassInformation extends Object
Contains information about a class.
  • Field Details

    • name

      private final String name
    • superClassName

      private final String superClassName
    • interfaces

      private final List<String> interfaces
    • interfaceMarker

      private final boolean interfaceMarker
  • Constructor Details

    • ClassInformation

      public ClassInformation(String name, String superClassName, List<String> interfaces, boolean interfaceMarker)
      Construct a ClassInformation object.
      Parameters:
      name - name
      superClassName - name of parent class (can be null)
      interfaces - interface names
      interfaceMarker - true if class is an interface, false otherwise
      Throws:
      NullPointerException - if interfaces is null or contains null, or if name is null
  • Method Details

    • getName

      public String getName()
      Get the name.
      Returns:
      name
    • getSuperClassName

      public String getSuperClassName()
      Get the parent class name.
      Returns:
      parent class name (may be null)
    • getInterfaces

      public List<String> getInterfaces()
      Gets the implemented interfaces.
      Returns:
      interfaces
    • isInterface

      public boolean isInterface()
      Whether or not this class is an interface.
      Returns:
      true if this class is an interface, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object