Package com.thoughtworks.qdox.model
Interface JavaPackage
- All Superinterfaces:
JavaAnnotatedElement,JavaModel,Serializable
- All Known Implementing Classes:
DefaultJavaPackage
-
Method Summary
Modifier and TypeMethodDescriptiongetClassByName(String name) Try to get any class of this package by name.Returns all the classes found for the package.TheClassLibraryof this package.getName()Equivalent ofPackage.getName()The parent of this package For instance: the package ofjava.lang.reflectisjava.langFor instance: one of the children ofjava.langwould bejava.lang.reflecttoString()Equivalent ofPackage.toString()Methods inherited from interface com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNameMethods inherited from interface com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber
-
Method Details
-
getClasses
Collection<JavaClass> getClasses()Returns all the classes found for the package.- Returns:
- all the classes found for the package, never
null
-
getClassByName
Try to get any class of this package by name. The name can be both the fully qualified name or just the name of the class.- Parameters:
name- the (fully qualified) name of the class- Returns:
- the matching class, otherwise
null - Since:
- 2.0
-
getParentPackage
JavaPackage getParentPackage()The parent of this package For instance: the package ofjava.lang.reflectisjava.lang- Returns:
- the parent package, otherwise
null
-
getSubPackages
Collection<JavaPackage> getSubPackages()For instance: one of the children ofjava.langwould bejava.lang.reflect- Returns:
- all the children of this package , never
null
-
getName
String getName()Equivalent ofPackage.getName()- Returns:
- the name, should never be
null
-
getJavaClassLibrary
ClassLibrary getJavaClassLibrary()TheClassLibraryof this package.- Returns:
- the classLibrary, should never be
null
-
toString
String toString()Equivalent ofPackage.toString()
-