edu.umd.cs.findbugs.ba.obl
Class InstructionActionCache
java.lang.Object
edu.umd.cs.findbugs.ba.obl.InstructionActionCache
public class InstructionActionCache
- extends java.lang.Object
A cache for looking up the collection of ObligationPolicyDatabaseActions
associated with a given InstructionHandle.
Avoids the need for repeated (slow) lookups.
- Author:
- David Hovemeyer
Method Summary |
boolean |
addsObligation(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg,
Obligation obligation)
|
boolean |
deletesObligation(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg,
Obligation obligation)
|
java.util.Collection<ObligationPolicyDatabaseAction> |
getActions(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstructionActionCache
public InstructionActionCache(ObligationPolicyDatabase database)
getActions
public java.util.Collection<ObligationPolicyDatabaseAction> getActions(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg)
addsObligation
public boolean addsObligation(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg,
Obligation obligation)
deletesObligation
public boolean deletesObligation(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg,
Obligation obligation)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.