Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.NormalAnnotation


    if (params.length == 0) {
      createAnnotation(Autowired.class.getCanonicalName(), Autowired.class.getSimpleName(), astRoot, ast,
          astRewrite, importRewrite, false, null);
    }
    else {
      NormalAnnotation autowiredAnnotation = (NormalAnnotation) createAnnotation(Autowired.class
          .getCanonicalName(), Autowired.class.getSimpleName(), astRoot, ast, astRewrite, importRewrite,
          true, null);

      for (int i = 0; i < params.length; i++) {
        switch (params[i]) {
        case REQUIRED:
          MemberValuePair requiredValue = ast.newMemberValuePair();
          requiredValue.setName(ast.newSimpleName("required"));
          requiredValue.setValue(ast.newBooleanLiteral(false));
          addLinkedPosition(astRewrite.track(requiredValue.getValue()), i == 0, "Autowire");
          autowiredAnnotation.values().add(requiredValue);
          break;
        // case QUALIFIER:
        // SingleMemberAnnotation qualifierAnnotation =
        // (SingleMemberAnnotation) createAnnotation(
        // Qualifier.class.getCanonicalName(),
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.NormalAnnotation

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.