Package 

Interface ListenerFunction

    • Method Summary

      Modifier and Type Method Description
      abstract <A extends Annotation> A getAnnotation(Class<Out A> type) 获取此监听函数上可以得到的注解。
      <T extends MsgGet> Boolean canListen(Class<T> onType) 判断当前监听函数是否可以触发当前类型的监听.
      abstract ListenResult<?> invoke(ListenerFunctionInvokeData data) 执行监听函数并返回一个执行后的响应结果。
      abstract String getId() 此监听函数的唯一编号,用于防止出现重复冲突。 在判断重复性前,会优先判断此id,再使用equals。 如果id相同,则认为其相同,则不再使用equals判断。
      abstract String getName() 监听函数的名称。
      Integer getPriority()
      abstract Set<Class<Out MsgGet>> getListenTypes() 监听的类型们。
      abstract List<ListenerFilter> getFilters() 此监听函数对应的监听器列表。
      abstract Type getType() 当前监听函数的载体。例如一个 Class。 一般如果是个method,那么此即为Class
      • Methods inherited from class love.forte.simbot.listener.ListenerFunction

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait