- 所有超级接口:
JavaModel,Serializable
- 所有已知子接口:
JavaClass,JavaConstructor,JavaExecutable,JavaField,JavaMethod,JavaPackage,JavaParameter
- 所有已知实现类:
DefaultJavaClass,DefaultJavaConstructor,DefaultJavaExecutable,DefaultJavaField,DefaultJavaMethod,DefaultJavaPackage,DefaultJavaParameter,DefaultJavaParameterizedType,DefaultJavaType,DefaultJavaTypeVariable,DefaultJavaWildcardType,JavaMethodDelegate
Equivalent of AnnotatedElement, providing the most important methods.
Where the original AnnotatedElement uses an Array, the JavaAnnotatedElement is using a List.
Where you can use Annotations, you can also use JavaDoc. For that reason all JavaDoc methods have been added to this interface.
- 从以下版本开始:
- 2.0
- 作者:
- Robert Scholte
-
方法概要
修饰符和类型方法说明Equivalent ofAnnotatedElement.getAnnotations()Retrieve the javadoc comment of this annotated element.getNamedParameter(String tagName, String parameterName) Convenience method forgetTagByName(String).getNamedParameter(String)that also checks for null tag.getTagByName(String name) Retrieve the doclettag by the specified name.getTags()Retrieve all defined doclet tags.getTagsByName(String name) Retrieve all doclettags with a specific name.从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getCodeBlock, getLineNumber
-
方法详细资料
-
getAnnotations
List<JavaAnnotation> getAnnotations()Equivalent ofAnnotatedElement.getAnnotations()- 返回:
- a list of Annotations, never
null
-
getComment
String getComment()Retrieve the javadoc comment of this annotated element. This is the part between/**and*/, but without the Standard doclet block tags. It may still contain Standard doclet inline tags, though.- 返回:
- the comment, otherwise
null
-
getTags
Retrieve all defined doclet tags.- 返回:
- a list of DocletTags, never
null
-
getTagsByName
Retrieve all doclettags with a specific name.- 参数:
name- the name of the doclet tag- 返回:
- a list of doclettags, never
null
-
getTagByName
Retrieve the doclettag by the specified name. If there are more than one tags, only return the first one.- 参数:
name- the name of the doclettag trying to retrieve- 返回:
- the first doclettag matching the name, otherwise
null
-
getNamedParameter
Convenience method forgetTagByName(String).getNamedParameter(String)that also checks for null tag.- 参数:
tagName- the tag nameparameterName- the parameter name- 返回:
- the value of the matching parameter, otherwise
null - 从以下版本开始:
- 1.3
-