本文整理汇总了Java中org.apache.bcel.Repository.removeClass方法的典型用法代码示例。如果您正苦于以下问题:Java Repository.removeClass方法的具体用法?Java Repository.removeClass怎么用?Java Repository.removeClass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.bcel.Repository
的用法示例。
在下文中一共展示了Repository.removeClass方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: rewrite
import org.apache.bcel.Repository; //导入方法依赖的package包/类
void rewrite(JavaClass javaClass, SpawnSignature[] spawnSignatures)
throws NoSpawningClassException, ClassRewriteFailure, AssumptionFailure {
String className = javaClass.getClassName();
SpawningClass spawnableClass =
new SpawningClass(javaClass, spawnSignatures, new Debug(d.turnedOn(), 2));
d.log(0, "%s is a spawning class\n", className);
d.log(1, "it contains calls with spawn signatures:\n");
print(spawnableClass.getSpawnSignatures(), 2);
d.log(1, "rewriting %s\n", className);
if (spawnableClass.rewrite(analyzer)) {
Repository.removeClass(javaClass);
javaClass = spawnableClass.getJavaClass();
Repository.addClass(javaClass);
setModified(wrapper.getInfo(javaClass));
}
}
示例2: flushButton_ActionPerformed
import org.apache.bcel.Repository; //导入方法依赖的package包/类
/** Machine-generated. */
public void flushButton_ActionPerformed( java.awt.event.ActionEvent actionEvent ) {
VerifierFactory.getVerifier(class_name).flush();
Repository.removeClass(class_name); // Make sure it will be reloaded.
getPass1Panel().setBackground(Color.gray);
getPass1Panel().repaint();
getPass2Panel().setBackground(Color.gray);
getPass2Panel().repaint();
getPass3Panel().setBackground(Color.gray);
getPass3Panel().repaint();
}
示例3: flushButton_ActionPerformed
import org.apache.bcel.Repository; //导入方法依赖的package包/类
/**
* Machine-generated.
* @param actionEvent
*/
public void flushButton_ActionPerformed(java.awt.event.ActionEvent actionEvent) {
VerifierFactory.getVerifier(class_name).flush();
Repository.removeClass(class_name); // Make sure it will be reloaded.
getPass1Panel().setBackground(Color.gray);
getPass1Panel().repaint();
getPass2Panel().setBackground(Color.gray);
getPass2Panel().repaint();
getPass3Panel().setBackground(Color.gray);
getPass3Panel().repaint();
}