Class SClassReader.ClassInfo

java.lang.Object
jadex.classreader.SClassReader.AnnotatedEntity
jadex.classreader.SClassReader.ClassInfo
Enclosing class:
SClassReader

public static class SClassReader.ClassInfo extends SClassReader.AnnotatedEntity
Class for infos about a class.
  • Field Details

    • classname

      protected String classname
      The class name.
    • superclassname

      protected String superclassname
      The super class name.
    • interfacenames

      protected List<String> interfacenames
      Class interfaces.
    • fieldinfos

      protected List<SClassReader.FieldInfo> fieldinfos
      Field infos, if available.
    • methodinfos

      protected List<SClassReader.MethodInfo> methodinfos
      Method infos, if available.
    • lastmodified

      protected Date lastmodified
      Last modified date of the class file if available.
  • Constructor Details

  • Method Details

    • getPackageName

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

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

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

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

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

      public 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(String classname)
      Set the class name.
      Parameters:
      classname - the class name to set
    • setSuperClassName

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

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

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

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

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

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

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