serp.bytecode.BCClass.getDeclaredInterfaceBCs()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(66)

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

BCClass.getDeclaredInterfaceBCs介绍

[英]Return the bytecode for the declared interfaces of this class, or an empty array if none.
[中]返回此类声明接口的字节码,如果没有,则返回空数组。

代码示例

代码示例来源:origin: net.sourceforge.serp/serp

/**
 * Return the bytecode of all unique interfaces implemented by this class,
 * including those of all superclasses.
 * This method does not recurse into interfaces-of-interfaces.
 */
public BCClass[] getInterfaceBCs() {
  Collection allTypes = new LinkedList();
  BCClass[] types;
  for (BCClass type = this; type != null; type = type.getSuperclassBC()) {
    types = type.getDeclaredInterfaceBCs();
    for (int i = 0; i < types.length; i++)
      allTypes.add(types[i]);
  }
  return (BCClass[]) allTypes.toArray(new BCClass[allTypes.size()]);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Return the bytecode of all unique interfaces implemented by this class,
 * including those of all superclasses.
 * This method does not recurse into interfaces-of-interfaces.
 */
public BCClass[] getInterfaceBCs() {
  Collection allTypes = new LinkedList();
  BCClass[] types;
  for (BCClass type = this; type != null; type = type.getSuperclassBC()) {
    types = type.getDeclaredInterfaceBCs();
    for (int i = 0; i < types.length; i++)
      allTypes.add(types[i]);
  }
  return (BCClass[]) allTypes.toArray(new BCClass[allTypes.size()]);
}

相关文章

微信公众号

最新文章

更多