Examples of newBooleanLiteral()


Examples of org.eclipse.jdt.core.dom.AST.newBooleanLiteral()

    AST ast = annotation.getAST();
    ASTRewrite astRewrite = ASTRewrite.create(ast);

    // change required=true to required = false
    if (valuePair != null) {
      astRewrite.replace(valuePair.getValue(), ast.newBooleanLiteral(false), null);
      return astRewrite;
    }

    // add required=false to annotation
    else {
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newBooleanLiteral()

      NormalAnnotation newAnnotation = ast.newNormalAnnotation();
      newAnnotation.setTypeName(ast.newSimpleName(annotation.getTypeName().getFullyQualifiedName()));

      MemberValuePair requiredValue = ast.newMemberValuePair();
      requiredValue.setName(ast.newSimpleName("required"));
      requiredValue.setValue(ast.newBooleanLiteral(false));
      newAnnotation.values().add(requiredValue);

      astRewrite.replace(annotation, newAnnotation, null);
    }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newBooleanLiteral()

      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 =
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.