001 package org.shiftone.jrat.core.criteria; 002 003 004 /** 005 * @author jeff@shiftone.org (Jeff Drost) 006 */ 007 public interface MethodCriteria { 008 009 public static final MethodCriteria ALL = ConstantMethodCriteria.ALL; 010 public static final MethodCriteria NONE = ConstantMethodCriteria.NONE; 011 public static final MethodCriteria DEFAULT = ALL; // new 012 013 // DebugMethodCriteria(ALL); 014 015 /** 016 * should a class with these attributes be matched? 017 */ 018 boolean isMatch(String className, long modifiers); 019 020 021 /** 022 * should a method with these attributes be matched? 023 */ 024 boolean isMatch(String className, String methodName, String signature, long modifiers); 025 }