All Downloads are FREE. Search and download functionalities are using the official Maven repository.

panda.aop.matcher.MethodMatcherFactory Maven / Gradle / Ivy

package panda.aop.matcher;

import panda.aop.MethodMatcher;

/**
 * 创建MethodMatcher的工厂类
 * 
 * @see panda.aop.MethodMatcher
 * @author zozoh([email protected])
 * @author Wendal([email protected])
 */
public final class MethodMatcherFactory {

	private MethodMatcherFactory() {
	}

	public static MethodMatcher matcher() {
		return matcher(-1);
	}

	public static MethodMatcher matcher(int mod) {
		return matcher(null, mod);
	}

	public static MethodMatcher matcher(String regex) {
		return matcher(regex, 0);
	}

	public static MethodMatcher matcher(String regex, int mod) {
		return matcher(regex, null, mod);
	}

	public static MethodMatcher matcher(String regex, String ignore, int mod) {
		return new RegexMethodMatcher(regex, ignore, mod);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy