本文整理汇总了Java中edu.umd.cs.findbugs.util.StringMatcher类的典型用法代码示例。如果您正苦于以下问题:Java StringMatcher类的具体用法?Java StringMatcher怎么用?Java StringMatcher使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StringMatcher类属于edu.umd.cs.findbugs.util包,在下文中一共展示了StringMatcher类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MatchMethodEntry
import edu.umd.cs.findbugs.util.StringMatcher; //导入依赖的package包/类
/**
* Constructor.
*
* @param receiverType
* TypeMatcher to match the receiver type (or class containing
* static method)
* @param methodName
* StringMatcher to match name of called method
* @param signature
* StringMatcher to match signature of called method
* @param isStatic
* true if matched method must be static, false otherwise
* @param action
* ActionType (ADD or DEL, depending on whether obligation is
* added or deleted)
* @param entryType
* entry type
* @param obligations
* Obligation to be added or deleted
*/
public MatchMethodEntry(TypeMatcher receiverType, StringMatcher methodName, StringMatcher signature, boolean isStatic,
ObligationPolicyDatabaseActionType action, ObligationPolicyDatabaseEntryType entryType, Obligation... obligations) {
this.receiverType = receiverType;
this.methodName = methodName;
this.signature = signature;
this.isStatic = isStatic;
this.action = action;
this.obligations = obligations;
this.entryType = entryType;
}