Package org.jnetpcap.packet.annotate

Examples of org.jnetpcap.packet.annotate.Bind


    for (AnnotatedBindMethod boundMethod : bindMethods) {

      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));

      } catch (AnnotatedMethodException e) {
View Full Code Here


    for (AnnotatedBindMethod boundMethod : bindMethods) {

      try {

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

        list.add(new AnnotatedBinding(c, source, target, boundMethod,
            dependencies));

      } catch (AnnotatedMethodException e) {
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

      try {
        if (method.isAnnotationPresent(Bind.class)) {

          checkSignature(method);

          final Bind bind = method.getAnnotation(Bind.class);
          target = bind.to();
          final AnnotatedBindMethod boundMethod =
              new AnnotatedBindMethod(target, method);

          list.add(boundMethod);
        }
View Full Code Here

      try {
        if (method.isAnnotationPresent(Bind.class)) {

          checkNonStaticSignature(method);

          final Bind bind = method.getAnnotation(Bind.class);
          target = bind.to();
          final AnnotatedBindMethod boundMethod =
              new AnnotatedBindMethod(target, method, object);

          list.add(boundMethod);
        }
View Full Code Here

TOP

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

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.