ObligationPolicyDatabaseEntry
public class MatchMethodEntry extends java.lang.Object implements ObligationPolicyDatabaseEntry
Constructor | Description |
---|---|
MatchMethodEntry(XMethod xmethod,
ObligationPolicyDatabaseActionType action,
ObligationPolicyDatabaseEntryType entryType,
Obligation... obligations) |
Constructor.
|
MatchMethodEntry(MethodDescriptor method,
ObligationPolicyDatabaseActionType action,
ObligationPolicyDatabaseEntryType entryType,
Obligation... obligations) |
|
MatchMethodEntry(TypeMatcher receiverType,
StringMatcher methodName,
StringMatcher signature,
boolean isStatic,
ObligationPolicyDatabaseActionType action,
ObligationPolicyDatabaseEntryType entryType,
Obligation... obligations) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
getActions(org.apache.bcel.generic.ReferenceType receiverType,
java.lang.String methodName,
java.lang.String signature,
boolean isStatic,
java.util.Collection<ObligationPolicyDatabaseAction> actionList) |
Get the ObligationPolicyDatabaseActions that should be applied
when the method described by the parameters is called.
|
ObligationPolicyDatabaseEntryType |
getEntryType() |
Get the type of entry (STRONG or WEAK).
|
java.lang.String |
toString() |
public MatchMethodEntry(XMethod xmethod, ObligationPolicyDatabaseActionType action, ObligationPolicyDatabaseEntryType entryType, Obligation... obligations)
xmethod
- an XMethodaction
- ActionType (ADD or DEL, depending on whether obligation is added or deleted)entryType
- entry typeobligations
- Obligation to be added or deletedpublic MatchMethodEntry(MethodDescriptor method, ObligationPolicyDatabaseActionType action, ObligationPolicyDatabaseEntryType entryType, Obligation... obligations)
public MatchMethodEntry(TypeMatcher receiverType, StringMatcher methodName, StringMatcher signature, boolean isStatic, ObligationPolicyDatabaseActionType action, ObligationPolicyDatabaseEntryType entryType, Obligation... obligations)
receiverType
- TypeMatcher to match the receiver type (or class containing static method)methodName
- StringMatcher to match name of called methodsignature
- StringMatcher to match signature of called methodisStatic
- true if matched method must be static, false otherwiseaction
- ActionType (ADD or DEL, depending on whether obligation is added or deleted)entryType
- entry typeobligations
- Obligation to be added or deletedpublic ObligationPolicyDatabaseEntryType getEntryType()
ObligationPolicyDatabaseEntry
getEntryType
in interface ObligationPolicyDatabaseEntry
public boolean getActions(org.apache.bcel.generic.ReferenceType receiverType, java.lang.String methodName, java.lang.String signature, boolean isStatic, java.util.Collection<ObligationPolicyDatabaseAction> actionList)
ObligationPolicyDatabaseEntry
getActions
in interface ObligationPolicyDatabaseEntry
receiverType
- receiver type of called methodmethodName
- name of called methodsignature
- signature of called methodisStatic
- true if called method is static, false otherwiseactionList
- List of ObligationPolicyDatabaseActions to be applied
when a called method is matched by this entrypublic java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.