Class Clazz

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Clazz
    extends java.lang.Object
    implements java.io.Serializable
    Represents a class signature.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      The name of the class.
      private static long serialVersionUID  
      private java.util.Set<java.lang.String> signatures
      The set of methods and constants that form the signature of the class.
      private java.lang.String superClass
      The superclass of the class.
      private java.lang.String[] superInterfaces
      The list of interfaces implemented by the class.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Clazz​(java.lang.String name, java.lang.String superClass, java.lang.String[] superInterfaces)
      Creates a new class signature, with an initially empty set of member signatures.
        Clazz​(java.lang.String name, java.util.Set<java.lang.String> signatures, java.lang.String superClass, java.lang.String[] superInterfaces)
      Creates a new class signature.
      private Clazz​(java.lang.String name, java.util.Set<java.lang.String> signatures, java.lang.String superClass, java.lang.String[] superInterfaces, java.lang.Void dummy)
      Internal constructor which just assigns all fields, without performing any defensive copying or similar.
        Clazz​(Clazz defA, Clazz defB)
      Merges two class instances.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      java.util.Set<java.lang.String> getSignatures()
      Gets a mutable reference to the set of member signatures.
      java.lang.String getSuperClass()  
      java.lang.String[] getSuperInterfaces()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

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

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

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

        private final java.lang.String[] superInterfaces
        The list of interfaces implemented by the class.
    • Constructor Detail

      • Clazz

        private Clazz​(java.lang.String name,
                      java.util.Set<java.lang.String> signatures,
                      java.lang.String superClass,
                      java.lang.String[] superInterfaces,
                      java.lang.Void dummy)
        Internal constructor which just assigns all fields, without performing any defensive copying or similar.
        Parameters:
        dummy - Unused; only needed to avoid constructor signature conflicts
      • Clazz

        public Clazz​(java.lang.String name,
                     java.lang.String superClass,
                     java.lang.String[] superInterfaces)
        Creates a new class signature, with an initially empty set of member signatures.
        Parameters:
        name - the name of the class.
        superClass - the superclass.
        superInterfaces - the interfaces implemented by the class; a copy of this array is created.
      • Clazz

        public Clazz​(java.lang.String name,
                     java.util.Set<java.lang.String> signatures,
                     java.lang.String superClass,
                     java.lang.String[] superInterfaces)
        Creates a new class signature.
        Parameters:
        name - the name of the class.
        signatures - the signatures; a copy of this set is created.
        superClass - the superclass.
        superInterfaces - the interfaces implemented by the class; a copy of this array is created.
      • Clazz

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

      • getName

        public java.lang.String getName()
      • getSignatures

        public java.util.Set<java.lang.String> getSignatures()
        Gets a mutable reference to the set of member signatures.
      • getSuperClass

        public java.lang.String getSuperClass()
      • getSuperInterfaces

        public java.lang.String[] getSuperInterfaces()