Package com.hannesdorfmann.fragmentargs.annotation

Examples of com.hannesdorfmann.fragmentargs.annotation.Arg.required()


    return getVariableName(field);
  }

  private static boolean isRequired(Element element) {
    Arg annotation = element.getAnnotation(Arg.class);
    return annotation.required();
  }
}
View Full Code Here


      return arguments;
    }
    for (Element element : fields) {
      if (requiredOnly) {
        Arg arg = element.getAnnotation(Arg.class);
        if (!arg.required()) {
          continue;
        }
      }
      arguments.add(new ArgumentAnnotatedField(element));
    }
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.