com.sun.javadoc.Doc.isClass()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(169)

本文整理了Java中com.sun.javadoc.Doc.isClass()方法的一些代码示例,展示了Doc.isClass()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Doc.isClass()方法的具体详情如下:
包路径:com.sun.javadoc.Doc
类名称:Doc
方法名:isClass

Doc.isClass介绍

[英]Is this Doc item a class (and not an interface or annotation type)? This includes ordinary classes, enums, errors and exceptions.
[中]此文档项是否为class(而不是接口或注释类型)?这包括普通类、枚举、错误和异常。

代码示例

代码示例来源:origin: de.smartics.util/project-analysis-javadoc

private ClassDoc getClassDoc(final Class<?> clazz, final List<Doc> docs)
{
 final String qualifiedName = clazz.getName();
 for (Doc doc : docs)
 {
  if (doc.isClass())
  {
   final ClassDoc classDoc = (ClassDoc) doc;
   if (qualifiedName.equals(classDoc.qualifiedName()))
   {
    return classDoc;
   }
  }
 }
 return null;
}

代码示例来源:origin: de.smartics.util/project-analysis-javadoc

/**
 * {@inheritDoc}
 * 
 * @see de.smartics.analysis.javadoc.Filter#accept(com.sun.javadoc.Doc)
 */
public ClassDoc accept(final Doc doc)
{
 if (doc != null && doc.isClass())
 {
  final ClassDoc classDoc = (ClassDoc) doc;
  if (FilterUtils.isImplementing(classDoc, type))
  {
   return classDoc;
  }
 }
 return null;
}

代码示例来源:origin: uk.org.retep.doclet/core

/**
 * Return true if the given Doc should be included
 * in the serialized form.
 *
 * @param doc the Doc object to check for serializability.
 */
public static boolean serialInclude(Doc doc) {
  if (doc == null) {
    return false;
  }
  return doc.isClass() ?
    serialClassInclude((ClassDoc)doc) :
    serialDocInclude(doc);
}

代码示例来源:origin: konsoletyper/teavm-javac

/**
 * Return true if the given Doc should be included
 * in the serialized form.
 *
 * @param doc the Doc object to check for serializability.
 */
public static boolean serialInclude(Doc doc) {
  if (doc == null) {
    return false;
  }
  return doc.isClass() ?
    serialClassInclude((ClassDoc)doc) :
    serialDocInclude(doc);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-annotations

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: harbby/presto-connectors

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: ch.cern.hadoop/hadoop-annotations

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: org.apache.hadoop/hadoop-annotations

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: hopshadoop/hops

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: org.apache.yetus/audience-annotations

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: org.apache.kudu/interface-annotations

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: io.hops/hadoop-annotations

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: apache/hadoop-common

return doc.isClass() || doc.isInterface() || doc.isAnnotationType();

代码示例来源:origin: uk.org.retep.doclet/core

htmlWriter.configuration.getText( "doclet.Constants_Summary" ) ) );
if( holder.isClass() && ((ClassDoc) holder).isSerializable() )

代码示例来源:origin: konsoletyper/teavm-javac

new StringContent(configuration.getText("doclet.Constants_Summary"))));
if (holder.isClass() && ((ClassDoc)holder).isSerializable()) {

相关文章