本文整理了Java中serp.bytecode.BCClass.getDeclaredInterfaceBCs()
方法的一些代码示例,展示了BCClass.getDeclaredInterfaceBCs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BCClass.getDeclaredInterfaceBCs()
方法的具体详情如下:
包路径:serp.bytecode.BCClass
类名称: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()]);
}
内容来源于网络,如有侵权,请联系作者删除!