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.
Author:
Kohsuke Kawaguchi
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()