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 SummaryFields Modifier and Type Field Description protected java.lang.StringclassnameThe class name.protected java.util.List<SClassReader.FieldInfo>fieldinfosField infos, if available.protected java.util.List<java.lang.String>interfacenamesClass interfaces.protected java.util.DatelastmodifiedLast modified date of the class file if available.protected java.util.List<SClassReader.MethodInfo>methodinfosMethod infos, if available.protected java.lang.StringsuperclassnameThe super class name.- 
Fields inherited from class jadex.commons.SClassReader.AnnotatedEntityaccessflags, annotations
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedClassInfo()Create a new classinfo.ClassInfo(java.lang.String classname, java.util.Collection<SClassReader.AnnotationInfo> annotations)Create a new classinfo.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()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.DategetLastModified()Gets the last modified date if it was supplied.java.util.List<SClassReader.MethodInfo>getMethodInfos()Get the method infos.java.lang.StringgetSuperClassName()Get the superclass name.booleanisAbstract()Tests if class is abstract.booleanisAnnotation()Tests if class is an annotation.booleanisEnum()Tests if class is an enum.booleanisInterface()Tests if class is an interface.protected voidsetClassName(java.lang.String classname)Set the class name.protected voidsetFieldInfos(java.util.List<SClassReader.FieldInfo> fieldinfos)Set the field infos.protected voidsetInterfaceNames(java.util.List<java.lang.String> interfacenames)Set the interface names.voidsetLastModified(java.util.Date lastmodified)Sets the last modified date.protected voidsetMethodInfos(java.util.List<SClassReader.MethodInfo> methodinfos)Set the method infos.protected voidsetSuperClassName(java.lang.String superclassname)Set the superclass name.java.lang.StringtoString()Get the string representation.- 
Methods inherited from class jadex.commons.SClassReader.AnnotatedEntitygetAccessFlags, getAnnotation, getAnnotations, hasAnnotation, isFinal, isPublic, isSynthetic, setAccessFlags, setAnnotations
 
- 
 
- 
- 
- 
Field Detail- 
classnameprotected java.lang.String classname The class name.
 - 
superclassnameprotected java.lang.String superclassname The super class name.
 - 
interfacenamesprotected java.util.List<java.lang.String> interfacenames Class interfaces.
 - 
fieldinfosprotected java.util.List<SClassReader.FieldInfo> fieldinfos Field infos, if available.
 - 
methodinfosprotected java.util.List<SClassReader.MethodInfo> methodinfos Method infos, if available.
 - 
lastmodifiedprotected java.util.Date lastmodified Last modified date of the class file if available.
 
- 
 - 
Constructor Detail- 
ClassInfoprotected ClassInfo() Create a new classinfo.
 - 
ClassInfopublic ClassInfo(java.lang.String classname, java.util.Collection<SClassReader.AnnotationInfo> annotations)Create a new classinfo.
 
- 
 - 
Method Detail- 
getClassNamepublic java.lang.String getClassName() Get the classname.- Returns:
- the classname.
 
 - 
getSuperClassNamepublic java.lang.String getSuperClassName() Get the superclass name.- Returns:
- the superclass name.
 
 - 
getInterfaceNamespublic java.util.List<java.lang.String> getInterfaceNames() Get the interface names.- Returns:
- The interface names.
 
 - 
getFieldInfospublic java.util.List<SClassReader.FieldInfo> getFieldInfos() Get the field infos.- Returns:
- the field infos.
 
 - 
getMethodInfospublic java.util.List<SClassReader.MethodInfo> getMethodInfos() Get the method infos.- Returns:
- the method infos.
 
 - 
isInterfacepublic boolean isInterface() Tests if class is an interface.- Returns:
- True, if an interface.
 
 - 
isAnnotationpublic boolean isAnnotation() Tests if class is an annotation.- Returns:
- True, if an annotation.
 
 - 
isEnumpublic boolean isEnum() Tests if class is an enum.- Returns:
- True, if an enum.
 
 - 
isAbstractpublic boolean isAbstract() Tests if class is abstract.- Returns:
- True, if abstract.
 
 - 
setClassNameprotected void setClassName(java.lang.String classname) Set the class name.- Parameters:
- classname- the class name to set
 
 - 
setSuperClassNameprotected void setSuperClassName(java.lang.String superclassname) Set the superclass name.- Parameters:
- classname- the superclass name to set
 
 - 
setInterfaceNamesprotected void setInterfaceNames(java.util.List<java.lang.String> interfacenames) Set the interface names.- Parameters:
- interfacenames- the interface names to set
 
 - 
setFieldInfosprotected void setFieldInfos(java.util.List<SClassReader.FieldInfo> fieldinfos) Set the field infos.- Parameters:
- fieldinfos- the field infos to set
 
 - 
setMethodInfosprotected void setMethodInfos(java.util.List<SClassReader.MethodInfo> methodinfos) Set the method infos.- Parameters:
- methodinfos- the method infos to set
 
 - 
getLastModifiedpublic java.util.Date getLastModified() Gets the last modified date if it was supplied.- Returns:
- Last modified date if available, null otherwise.
 
 - 
setLastModifiedpublic void setLastModified(java.util.Date lastmodified) Sets the last modified date.
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-