Package jadex.classreader
Class SClassReader.ClassInfo
java.lang.Object
jadex.classreader.SClassReader.AnnotatedEntity
jadex.classreader.SClassReader.ClassInfo
- Enclosing class:
SClassReader
Class for infos about a class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe class name.protected List<SClassReader.FieldInfo> Field infos, if available.Class interfaces.protected DateLast modified date of the class file if available.protected List<SClassReader.MethodInfo> Method infos, if available.protected StringThe super class name.Fields inherited from class jadex.classreader.SClassReader.AnnotatedEntity
accessflags, annotations -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a new classinfo.ClassInfo(String classname, Collection<SClassReader.AnnotationInfo> annotations) Create a new classinfo. -
Method Summary
Modifier and TypeMethodDescriptionGet the classname.Get the field infos.Get the interface names.Gets the last modified date if it was supplied.Get the method infos.Get the package name of the class.Get the superclass name.booleanTests if class is abstract.booleanTests if class is an annotation.booleanisEnum()Tests if class is an enum.booleanTests if class is an interface.protected voidsetClassName(String classname) Set the class name.protected voidsetFieldInfos(List<SClassReader.FieldInfo> fieldinfos) Set the field infos.protected voidsetInterfaceNames(List<String> interfacenames) Set the interface names.voidsetLastModified(Date lastmodified) Sets the last modified date.protected voidsetMethodInfos(List<SClassReader.MethodInfo> methodinfos) Set the method infos.protected voidsetSuperClassName(String superclassname) Set the superclass name.toString()Get the string representation.Methods inherited from class jadex.classreader.SClassReader.AnnotatedEntity
getAccessFlags, getAnnotation, getAnnotations, hasAnnotation, isFinal, isPublic, isSynthetic, setAccessFlags, setAnnotations
-
Field Details
-
classname
The class name. -
superclassname
The super class name. -
interfacenames
Class interfaces. -
fieldinfos
Field infos, if available. -
methodinfos
Method infos, if available. -
lastmodified
Last modified date of the class file if available.
-
-
Constructor Details
-
ClassInfo
protected ClassInfo()Create a new classinfo. -
ClassInfo
Create a new classinfo.
-
-
Method Details
-
getPackageName
Get the package name of the class.- Returns:
- Package name.
-
getClassName
Get the classname.- Returns:
- the classname.
-
getSuperClassName
Get the superclass name.- Returns:
- the superclass name.
-
getInterfaceNames
Get the interface names.- Returns:
- The interface names.
-
getFieldInfos
Get the field infos.- Returns:
- the field infos.
-
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
Set the class name.- Parameters:
classname- the class name to set
-
setSuperClassName
Set the superclass name.- Parameters:
classname- the superclass name to set
-
setInterfaceNames
Set the interface names.- Parameters:
interfacenames- the interface names to set
-
setFieldInfos
Set the field infos.- Parameters:
fieldinfos- the field infos to set
-
setMethodInfos
Set the method infos.- Parameters:
methodinfos- the method infos to set
-
getLastModified
Gets the last modified date if it was supplied.- Returns:
- Last modified date if available, null otherwise.
-
setLastModified
Sets the last modified date. -
toString
Get the string representation.
-