Class ClassInformation


  • public final class ClassInformation
    extends java.lang.Object
    Contains information about a class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean interfaceMarker  
      private java.util.List<java.lang.String> interfaces  
      private java.lang.String name  
      private java.lang.String superClassName  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassInformation​(java.lang.String name, java.lang.String superClassName, java.util.List<java.lang.String> interfaces, boolean interfaceMarker)
      Construct a ClassInformation object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<java.lang.String> getInterfaces()
      Gets the implemented interfaces.
      java.lang.String getName()
      Get the name.
      java.lang.String getSuperClassName()
      Get the parent class name.
      int hashCode()  
      boolean isInterface()
      Whether or not this class is an interface.
      • Methods inherited from class java.lang.Object

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

      • name

        private final java.lang.String name
      • superClassName

        private final java.lang.String superClassName
      • interfaces

        private final java.util.List<java.lang.String> interfaces
      • interfaceMarker

        private final boolean interfaceMarker
    • Constructor Detail

      • ClassInformation

        public ClassInformation​(java.lang.String name,
                                java.lang.String superClassName,
                                java.util.List<java.lang.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:
        java.lang.NullPointerException - if interfaces is null or contains null, or if name is null
    • Method Detail

      • getName

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

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

        public java.util.List<java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object