本文整理汇总了Java中com.sun.javadoc.ExecutableMemberDoc.name方法的典型用法代码示例。如果您正苦于以下问题:Java ExecutableMemberDoc.name方法的具体用法?Java ExecutableMemberDoc.name怎么用?Java ExecutableMemberDoc.name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.javadoc.ExecutableMemberDoc
的用法示例。
在下文中一共展示了ExecutableMemberDoc.name方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ExternalRef
import com.sun.javadoc.ExecutableMemberDoc; //导入方法依赖的package包/类
public ExternalRef(ExecutableMemberDoc executableMemberDoc) {
name = executableMemberDoc.name() + "()";
qualifiedName = executableMemberDoc.containingClass().qualifiedName() + "#" + executableMemberDoc.name()
+ executableMemberDoc.signature();
url = ExternalRefProvider.this.url + executableMemberDoc.containingPackage().name().replace('.',
'/') + "/" + executableMemberDoc.containingClass().name() + ".html#" + executableMemberDoc.name()
+ executableMemberDoc.signature();
}
示例2: ApiPageRef
import com.sun.javadoc.ExecutableMemberDoc; //导入方法依赖的package包/类
public ApiPageRef(ExecutableMemberDoc executableMemberDoc, ApiPage apiPage) {
this.name = executableMemberDoc.containingClass().name() + '.' + executableMemberDoc.name() +
executableMemberDoc.flatSignature();
this.qualifiedName = executableMemberDoc.containingClass().qualifiedName() + "#" + executableMemberDoc.name() +
executableMemberDoc.signature();
this.apiPage = apiPage;
this.anchor = executableMemberDoc.name() + executableMemberDoc.signature();
}
示例3: skipMethod
import com.sun.javadoc.ExecutableMemberDoc; //导入方法依赖的package包/类
private boolean skipMethod(ExecutableMemberDoc method) {
ClassDoc clazz = method.containingClass();
boolean isAbstract = method instanceof MethodDoc
&& ((MethodDoc) method).isAbstract();
boolean isInterface = clazz.isInterface()
|| (clazz.isAbstract() && isAbstract);
if (INTERFACES_ONLY && !isInterface) {
return true;
}
String name = method.name();
if (method.isPrivate() || name.equals("finalize")) {
return true;
}
if (method.isConstructor()
&& method.getRawCommentText().trim().length() == 0) {
return true;
}
if (method.getRawCommentText().trim()
.startsWith("@deprecated INTERNAL")) {
return true;
}
String firstSentence = getFirstSentence(method.firstSentenceTags());
String raw = method.getRawCommentText();
if (firstSentence != null && firstSentence.startsWith("INTERNAL")) {
return true;
}
if ((firstSentence == null || firstSentence.trim().length() == 0)
&& raw.indexOf("{@inheritDoc}") < 0) {
if (!doesOverride(method)) {
boolean setterOrGetter = name.startsWith("set")
&& method.parameters().length == 1;
setterOrGetter |= name.startsWith("get")
&& method.parameters().length == 0;
Type returnType = getReturnType(method);
setterOrGetter |= name.startsWith("is")
&& method.parameters().length == 0
&& returnType != null
&& returnType.toString().equals("boolean");
if (!setterOrGetter) {
addError("Undocumented method " + " ("
+ getLink(clazz, method.position().line()) + ") "
+ clazz + "." + name + " " + raw);
return true;
}
}
}
return false;
}
示例4: getExecutableMemberDocRef
import com.sun.javadoc.ExecutableMemberDoc; //导入方法依赖的package包/类
@Override
public DocReferenceable getExecutableMemberDocRef(ExecutableMemberDoc executableMemberDoc) {
return new UnknownApiRef(executableMemberDoc.name());
}