Package jadex.commons

Class SClassReader.ClassInfo

    • Field Detail

      • classname

        protected java.lang.String classname
        The class name.
      • superclassname

        protected java.lang.String superclassname
        The super class name.
      • interfacenames

        protected java.util.List<java.lang.String> interfacenames
        Class interfaces.
      • lastmodified

        protected java.util.Date lastmodified
        Last modified date of the class file if available.
    • Constructor Detail

      • ClassInfo

        protected ClassInfo()
        Create a new classinfo.
      • ClassInfo

        public ClassInfo​(java.lang.String classname,
                         java.util.Collection<SClassReader.AnnotationInfo> annotations)
        Create a new classinfo.
    • Method Detail

      • getPackageName

        public java.lang.String getPackageName()
        Get the package name of the class.
        Returns:
        Package name.
      • getClassName

        public java.lang.String getClassName()
        Get the classname.
        Returns:
        the classname.
      • getSuperClassName

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

        public java.util.List<java.lang.String> getInterfaceNames()
        Get the interface names.
        Returns:
        The interface names.
      • getFieldInfos

        public java.util.List<SClassReader.FieldInfo> getFieldInfos()
        Get the field infos.
        Returns:
        the field infos.
      • getMethodInfos

        public java.util.List<SClassReader.MethodInfo> getMethodInfos()
        Get the method infos.
        Returns:
        the method infos.
      • isInterface

        public boolean isInterface()
        Tests if class is an interface.
        Returns:
        True, if an interface.
      • isAnnotation

        public boolean isAnnotation()
        Tests if class is an annotation.
        Returns:
        True, if an annotation.
      • isEnum

        public boolean isEnum()
        Tests if class is an enum.
        Returns:
        True, if an enum.
      • isAbstract

        public boolean isAbstract()
        Tests if class is abstract.
        Returns:
        True, if abstract.
      • setClassName

        protected void setClassName​(java.lang.String classname)
        Set the class name.
        Parameters:
        classname - the class name to set
      • setSuperClassName

        protected void setSuperClassName​(java.lang.String superclassname)
        Set the superclass name.
        Parameters:
        classname - the superclass name to set
      • setInterfaceNames

        protected void setInterfaceNames​(java.util.List<java.lang.String> interfacenames)
        Set the interface names.
        Parameters:
        interfacenames - the interface names to set
      • setFieldInfos

        protected void setFieldInfos​(java.util.List<SClassReader.FieldInfo> fieldinfos)
        Set the field infos.
        Parameters:
        fieldinfos - the field infos to set
      • setMethodInfos

        protected void setMethodInfos​(java.util.List<SClassReader.MethodInfo> methodinfos)
        Set the method infos.
        Parameters:
        methodinfos - the method infos to set
      • getLastModified

        public java.util.Date getLastModified()
        Gets the last modified date if it was supplied.
        Returns:
        Last modified date if available, null otherwise.
      • setLastModified

        public void setLastModified​(java.util.Date lastmodified)
        Sets the last modified date.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object