Package org.jnetpcap.packet.annotate

Examples of org.jnetpcap.packet.annotate.Bind.from()


      try {

        Bind bind = boundMethod.getMethod().getAnnotation(Bind.class);
        target = bind.to();
        Class<? extends JHeader> source = bind.from();
        Class<? extends JHeader>[] dependencies = bind.dependencies();

        list.add(new AnnotatedBinding(c, source, target, boundMethod,
            dependencies));
View Full Code Here


       * Also need to check and make sure that for general classes, there is
       * also a "from" parameter, which does not have to be present int JHeader
       * declaring class case.
       */
      final Bind bind = b.getMethod().getAnnotation(Bind.class);
      final Class<? extends JHeader> source = bind.from();

      if (source == JHeader.class) {
        errors.add(new HeaderDefinitionError(c,
            "missing annotated 'from' declaration for method "
                + b.getMethod().getName() + "()"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.