Class Clazz

java.lang.Object
org.codehaus.mojo.animal_sniffer.Clazz
All Implemented Interfaces:
Serializable

public final class Clazz extends Object implements Serializable
Represents a class signature.
See Also:
  • Field Details

    • name

      private final String name
      The name of the class.
    • signatures

      private final Set<String> signatures
      The set of methods and constants that form the signature of the class.
    • superClass

      private final String superClass
      The superclass of the class.
    • superInterfaces

      private final String[] superInterfaces
      The list of interfaces implemented by the class.
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • Clazz

      public Clazz(String name, Set<String> signatures, String superClass, String[] superInterfaces)
      Creates a new class signature.
      Parameters:
      name - the name of the class.
      signatures - the signatures.
      superClass - the superclass.
      superInterfaces - the interfaces implemented by the class.
    • Clazz

      public Clazz(Clazz defA, Clazz defB)
      Merges two class instances.
      Parameters:
      defA - the first instance.
      defB - the second instance
      Throws:
      ClassCastException - if the two instances have different names or if the superclasses differ.
  • Method Details

    • getName

      public String getName()
    • getSignatures

      public Set<String> getSignatures()
    • getSuperClass

      public String getSuperClass()
    • getSuperInterfaces

      public String[] getSuperInterfaces()