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