java.lang.Object
com.thoughtworks.qdox.model.impl.AbstractJavaModel
com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
com.thoughtworks.qdox.model.impl.DefaultJavaPackage
- 所有已实现的接口:
JavaAnnotatedElement,JavaModel,JavaPackage,Serializable
The default implementation of
JavaPackage, representing a Package.- 从以下版本开始:
- 1.9
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidbooleangetClassByName(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.reflectinthashCode()voidsetClassLibrary(ClassLibrary classLibrary) voidtoString()Equivalent ofPackage.toString()从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
getAnnotations, getComment, getDeclaringClass, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory从接口继承的方法 com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getLineNumber
-
构造器详细资料
-
DefaultJavaPackage
- 参数:
name- the name of the package, should never benull
-
-
方法详细资料
-
getName
Equivalent ofPackage.getName()- 指定者:
getName在接口中JavaPackage- 返回:
- the name, should never be
null
-
setName
-
getCodeBlock
- 指定者:
getCodeBlock在接口中JavaModel- 返回:
- the codeblock
-
setClassLibrary
-
getJavaClassLibrary
TheClassLibraryof this package.- 指定者:
getJavaClassLibrary在接口中JavaPackage- 返回:
- the classLibrary, should never be
null
-
addClass
-
getClasses
Returns all the classes found for the package.- 指定者:
getClasses在接口中JavaPackage- 返回:
- 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.- 指定者:
getClassByName在接口中JavaPackage- 参数:
name- the (fully qualified) name of the class- 返回:
- the matching class, otherwise
null
-
getParentPackage
The parent of this package For instance: the package ofjava.lang.reflectisjava.lang- 指定者:
getParentPackage在接口中JavaPackage- 返回:
- the parent package, otherwise
null
-
getSubPackages
For instance: one of the children ofjava.langwould bejava.lang.reflect- 指定者:
getSubPackages在接口中JavaPackage- 返回:
- all the children of this package , never
null
-
equals
-
hashCode
public int hashCode() -
toString
从接口复制的说明:JavaPackageEquivalent ofPackage.toString()- 指定者:
toString在接口中JavaPackage- 覆盖:
toString在类中Object- 返回:
- the string representation of the package.
-