类 ReflectHelper


  • public class ReflectHelper
    extends Object
    • 构造器详细资料

      • ReflectHelper

        public ReflectHelper()
    • 方法详细资料

      • callMethod

        public void callMethod​(String classString,
                               Class<? extends Annotation> clazz,
                               Object[] args)
                        throws Exception
        执行match注解修饰的方法
        参数:
        classString - 方法所属全类名
        clazz - 注解的class
        args - 参数
        抛出:
        Exception
      • callMatchMethod

        public void callMatchMethod​(Page page,
                                    String classString,
                                    Class<? extends Annotation> clazz,
                                    Object[] args)
                             throws Exception
        执行match注解修饰的方法
        参数:
        page - 爬虫对象
        classString - 方法所属全类名
        clazz - 注解的class
        args - 参数
        抛出:
        Exception