Package jadex.commons
Class SClassReader.ClassInfo
- java.lang.Object
-
- jadex.commons.SClassReader.AnnotatedEntity
-
- jadex.commons.SClassReader.ClassInfo
-
- Enclosing class:
- SClassReader
public static class SClassReader.ClassInfo extends SClassReader.AnnotatedEntity
Class for infos about a class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
classname
The class name.protected java.util.List<SClassReader.FieldInfo>
fieldinfos
Field infos, if available.protected java.util.List<java.lang.String>
interfacenames
Class interfaces.protected java.util.Date
lastmodified
Last modified date of the class file if available.protected java.util.List<SClassReader.MethodInfo>
methodinfos
Method infos, if available.protected java.lang.String
superclassname
The super class name.-
Fields inherited from class jadex.commons.SClassReader.AnnotatedEntity
accessflags, annotations
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClassInfo()
Create a new classinfo.ClassInfo(java.lang.String classname, java.util.Collection<SClassReader.AnnotationInfo> annotations)
Create a new classinfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
Get the classname.java.util.List<SClassReader.FieldInfo>
getFieldInfos()
Get the field infos.java.util.List<java.lang.String>
getInterfaceNames()
Get the interface names.java.util.Date
getLastModified()
Gets the last modified date if it was supplied.java.util.List<SClassReader.MethodInfo>
getMethodInfos()
Get the method infos.java.lang.String
getSuperClassName()
Get the superclass name.boolean
isAbstract()
Tests if class is abstract.boolean
isAnnotation()
Tests if class is an annotation.boolean
isEnum()
Tests if class is an enum.boolean
isInterface()
Tests if class is an interface.protected void
setClassName(java.lang.String classname)
Set the class name.protected void
setFieldInfos(java.util.List<SClassReader.FieldInfo> fieldinfos)
Set the field infos.protected void
setInterfaceNames(java.util.List<java.lang.String> interfacenames)
Set the interface names.void
setLastModified(java.util.Date lastmodified)
Sets the last modified date.protected void
setMethodInfos(java.util.List<SClassReader.MethodInfo> methodinfos)
Set the method infos.protected void
setSuperClassName(java.lang.String superclassname)
Set the superclass name.java.lang.String
toString()
Get the string representation.-
Methods inherited from class jadex.commons.SClassReader.AnnotatedEntity
getAccessFlags, getAnnotation, getAnnotations, hasAnnotation, isFinal, isPublic, isSynthetic, setAccessFlags, setAnnotations
-
-
-
-
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.
-
fieldinfos
protected java.util.List<SClassReader.FieldInfo> fieldinfos
Field infos, if available.
-
methodinfos
protected java.util.List<SClassReader.MethodInfo> methodinfos
Method infos, if available.
-
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
-
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 classjava.lang.Object
-
-