当前位置: 首页>>代码示例>>Java>>正文


Java ExecutableMemberDoc.name方法代码示例

本文整理汇总了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();
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:9,代码来源:ExternalRefProvider.java

示例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();
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:9,代码来源:ApiPageRef.java

示例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;
}
 
开发者ID:vdr007,项目名称:ThriftyPaxos,代码行数:49,代码来源:Doclet.java

示例4: getExecutableMemberDocRef

import com.sun.javadoc.ExecutableMemberDoc; //导入方法依赖的package包/类
@Override
public DocReferenceable getExecutableMemberDocRef(ExecutableMemberDoc executableMemberDoc) {
    return new UnknownApiRef(executableMemberDoc.name());
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:5,代码来源:UnknownRefProvider.java


注:本文中的com.sun.javadoc.ExecutableMemberDoc.name方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。