Package org.jnetpcap.packet.annotate

Examples of org.jnetpcap.packet.annotate.Scanner


    List<AnnotatedScannerMethod> list =
        new ArrayList<AnnotatedScannerMethod>(20);

    for (Method method : getMethods(c, Scanner.class)) {
      Scanner a = method.getAnnotation(Scanner.class);
      Class<? extends JHeader> clazz =
          (a.value() == JHeader.class) ? c : a.value();

      if (JHeader.class.isAssignableFrom(c) == false) {
        throw new HeaderDefinitionError(c, "non JHeader based classes, "
            + "must declare protocol class in @Scanner annotation");
      }
View Full Code Here


    List<AnnotatedScannerMethod> list =
        new ArrayList<AnnotatedScannerMethod>(20);

    for (Method method : getMethods(c, Scanner.class)) {
      Scanner a = method.getAnnotation(Scanner.class);
      if (a.value() == JHeader.class) {
        throw new HeaderDefinitionError(c, "non JHeader based classes, "
            + "must declare protocol class in @Scanner annotation");
      }

      list.add(new AnnotatedScannerMethod(method, a.value(), container));
    }

    AnnotatedScannerMethod[] m =
        list.toArray(new AnnotatedScannerMethod[list.size()]);
    cache.put(c, m);
View Full Code Here

TOP

Related Classes of org.jnetpcap.packet.annotate.Scanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.