public class ObligationPolicyDatabase
extends java.lang.Object
See Weimer and Necula, Finding and preventing run-time error handling mistakes, OOPSLA 2004.
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
ObligationPolicyDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(ObligationPolicyDatabaseEntry entry) |
ObligationPolicyDatabaseEntry |
addParameterDeletesObligationDatabaseEntry(XMethod xmethod,
Obligation obligation,
ObligationPolicyDatabaseEntryType entryType)
Add an appropriate policy database entry for parameters marked with the
WillClose annotation.
|
void |
getActions(org.apache.bcel.generic.ReferenceType receiverType,
java.lang.String methodName,
java.lang.String signature,
boolean isStatic,
java.util.Collection<ObligationPolicyDatabaseAction> actionList) |
java.util.Set<Obligation> |
getAllObligations() |
java.util.List<ObligationPolicyDatabaseEntry> |
getEntries() |
ObligationFactory |
getFactory() |
boolean |
isStrictChecking() |
void |
setStrictChecking(boolean strictChecking) |
public ObligationFactory getFactory()
public java.util.Set<Obligation> getAllObligations()
public void addEntry(ObligationPolicyDatabaseEntry entry)
public ObligationPolicyDatabaseEntry addParameterDeletesObligationDatabaseEntry(XMethod xmethod, Obligation obligation, ObligationPolicyDatabaseEntryType entryType)
xmethod
- a methodobligation
- the Obligation deleted by the methodentryType
- type of entry (STRONG or WEAK)public void setStrictChecking(boolean strictChecking)
public boolean isStrictChecking()
public void getActions(org.apache.bcel.generic.ReferenceType receiverType, java.lang.String methodName, java.lang.String signature, boolean isStatic, java.util.Collection<ObligationPolicyDatabaseAction> actionList)
public java.util.List<ObligationPolicyDatabaseEntry> getEntries()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.