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

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

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

BCClass.isInstanceOf介绍

[英]Return true if this class or any of its superclasses implement/extend the given interface/class. This method does not recurse into interfaces-of-interfaces.
[中]如果此类或其任何超类实现/扩展给定接口/类,则返回true。此方法不会递归到接口的接口中。

代码示例

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

/**
 * Return true if this class or any of its superclasses implement/extend
 * the given interface/class.
 * This method does not recurse into interfaces-of-interfaces.
 */
public boolean isInstanceOf(Class type) {
  if (type == null)
    return false;
  return isInstanceOf(type.getName());
}

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

/**
 * Return true if this class or any of its superclasses implement/extend
 * the given interface/class.
 * This method does not recurse into interfaces-of-interfaces.
 */
public boolean isInstanceOf(Class type) {
  if (type == null)
    return false;
  return isInstanceOf(type.getName());
}

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

/**
 * Return true if this class or any of its superclasses implement/extend
 * the given interface/class.
 * This method does not recurse into interfaces-of-interfaces.
 */
public boolean isInstanceOf(BCClass type) {
  if (type == null)
    return false;
  return isInstanceOf(type.getName());
}

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

/**
 * Return true if this class or any of its superclasses implement/extend
 * the given interface/class.
 * This method does not recurse into interfaces-of-interfaces.
 */
public boolean isInstanceOf(BCClass type) {
  if (type == null)
    return false;
  return isInstanceOf(type.getName());
}

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

if (pc.isInstanceOf(PersistenceCapable.class) &&
  !PersistenceCapable.class.isAssignableFrom(superclass))
  throw new InternalException(

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

if (pc.isInstanceOf(PersistenceCapable.class) &&
  !PersistenceCapable.class.isAssignableFrom(superclass))
  throw new InternalException(

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

if (pc.isInstanceOf(PersistenceCapable.class) &&
  !PersistenceCapable.class.isAssignableFrom(superclass))
  throw new InternalException(

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

if (pc.isInstanceOf(PersistenceCapable.class) &&
  !PersistenceCapable.class.isAssignableFrom(superclass))
  throw new InternalException(

代码示例来源:origin: org.apache.openejb.patch/openjpa

if (pc.isInstanceOf(PersistenceCapable.class) &&
  !PersistenceCapable.class.isAssignableFrom(superclass))
  throw new InternalException(

相关文章

微信公众号

最新文章

更多