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

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

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

BCClass.invalidate介绍

[英]Invalidate this class.
[中]使该类无效。

代码示例

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

/**
 * Clears all classes from this project.
 */
public void clear() {
  Collection values = _cache.values();
  BCClass bc;
  for (Iterator itr = values.iterator(); itr.hasNext();) {
    bc = (BCClass) itr.next();
    itr.remove();
    bc.invalidate();
  }
  _names.clear();
}

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

/**
 * Clears all classes from this project.
 */
public void clear() {
  Collection values = _cache.values();
  BCClass bc;
  for (Iterator itr = values.iterator(); itr.hasNext();) {
    bc = (BCClass) itr.next();
    itr.remove();
    bc.invalidate();
  }
  _names.clear();
}

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

/**
 * Remove a class from this project. After removal, the result of any
 * further operations on the class is undefined.
 *
 * @return true if the class belonged to this project, false otherwise
 */
public boolean removeClass(BCClass type) {
  if (type == null)
    return false;
  if (!removeFromCache(type.getName(), type))
    return false;
  type.invalidate();
  return true;
}

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

/**
 * Remove a class from this project. After removal, the result of any
 * further operations on the class is undefined.
 *
 * @return true if the class belonged to this project, false otherwise
 */
public boolean removeClass(BCClass type) {
  if (type == null)
    return false;
  if (!removeFromCache(type.getName(), type))
    return false;
  type.invalidate();
  return true;
}

相关文章

微信公众号

最新文章

更多