Examples of astModifiers()


Examples of lombok.ast.ConstructorDeclaration.astModifiers()

                }
            } else if (type == ConstructorDeclaration.class) {
                // Constructor
                // Look for annotations on the method
                ConstructorDeclaration declaration = (ConstructorDeclaration) scope;
                if (isSuppressed(issue, declaration.astModifiers())) {
                    return true;
                }
            } else if (type == ClassDeclaration.class) {
                // Class
                ClassDeclaration declaration = (ClassDeclaration) scope;
View Full Code Here

Examples of lombok.ast.ConstructorDeclaration.astModifiers()

                    return true;
                }
            } else if (type == ClassDeclaration.class) {
                // Class
                ClassDeclaration declaration = (ClassDeclaration) scope;
                if (isSuppressed(issue, declaration.astModifiers())) {
                    return true;
                }
            }

            scope = scope.getParent();
View Full Code Here

Examples of lombok.ast.ConstructorDeclaration.astModifiers()

  public Node createConstructorDeclaration(Node modifiers, Node typeParameters, Node name,
      Node params, Node throwsHead, List<Node> throwsTail, Node body) {
   
    ConstructorDeclaration decl = new ConstructorDeclaration().astTypeName(
        createIdentifierIfNeeded(name, currentPos())).rawBody(body);
    if (modifiers != null) decl.astModifiers(createModifiersIfNeeded(modifiers, currentPos()));
    if (typeParameters instanceof TemporaryNode.OrphanedTypeVariables) {
      for (Node typeParameter : ((TemporaryNode.OrphanedTypeVariables)typeParameters).variables) {
        decl.rawTypeVariables().addToEnd(typeParameter);
      }
    }
View Full Code Here

Examples of lombok.ast.ConstructorDeclaration.astModifiers()

   
    @Override public void visitMethodDef(JCMethodDecl node) {
      String name = node.getName() == null ? null : node.getName().toString();
      if ("<init>".equals(name)) {
        ConstructorDeclaration cd = new ConstructorDeclaration();
        cd.astModifiers((Modifiers) toTree(node.getModifiers()));
        cd.rawBody(toTree(node.getBody()));
        fillList(node.getThrows(), cd.rawThrownTypeReferences(), FlagKey.TYPE_REFERENCE);
        fillList(node.getTypeParameters(), cd.rawTypeVariables());
        fillList(node.getParameters(), cd.rawParameters(), FlagKey.NO_VARDECL_FOLDING, FlagKey.VARDEF_IS_DEFINITION);
        String typeName = (String) getFlag(FlagKey.CONTAINING_TYPE_NAME);
View Full Code Here

Examples of lombok.ast.ConstructorDeclaration.astModifiers()

                }
            } else if (type == ConstructorDeclaration.class) {
                // Constructor
                // Look for annotations on the method
                ConstructorDeclaration declaration = (ConstructorDeclaration) scope;
                if (isSuppressed(issue, declaration.astModifiers())) {
                    return true;
                }
            } else if (type == ClassDeclaration.class) {
                // Class
                ClassDeclaration declaration = (ClassDeclaration) scope;
View Full Code Here

Examples of lombok.ast.ConstructorDeclaration.astModifiers()

                    return true;
                }
            } else if (type == ClassDeclaration.class) {
                // Class
                ClassDeclaration declaration = (ClassDeclaration) scope;
                if (isSuppressed(issue, declaration.astModifiers())) {
                    return true;
                }
            }

            if (checkComments && context.isSuppressed(scope, issue)) {
View Full Code Here

Examples of lombok.ast.EnumDeclaration.astModifiers()

  }
 
  public Node createEnumDeclaration(Node modifiers, Node name, Node body, List<Node> addons) {
    EnumDeclaration decl = new EnumDeclaration();
    decl.astName(createIdentifierIfNeeded(name, currentPos())).rawBody(body);
    if (modifiers != null) decl.astModifiers(createModifiersIfNeeded(modifiers, currentPos()));
    if (addons != null) for (Node n : addons) {
      //if (n instanceof ExtendsClause) //TODO add error node: implements not allowed here.
      if (n instanceof TemporaryNode.ImplementsClause) {
        //if (!decl.implementing().isEmpty()) //TODO add error node: multiple implements clauses.
        List<Node> interfaces = ((TemporaryNode.ImplementsClause)n).superInterfaces;
View Full Code Here

Examples of lombok.ast.InterfaceDeclaration.astModifiers()

    return posify(result);
  }
 
  public Node createInterfaceDeclaration(Node modifiers, Node name, Node params, Node body, List<Node> addons) {
    InterfaceDeclaration decl = new InterfaceDeclaration().astName(createIdentifierIfNeeded(name, currentPos())).rawBody(body);
    if (modifiers != null) decl.astModifiers(createModifiersIfNeeded(modifiers, currentPos()));
    if (params instanceof TemporaryNode.OrphanedTypeVariables) {
      TemporaryNode.OrphanedTypeVariables otv = (TemporaryNode.OrphanedTypeVariables)params;
      if (otv.variables != null) for (Node typeParameter : otv.variables) {
        if (typeParameter != null) decl.rawTypeVariables().addToEnd(typeParameter);
      }
View Full Code Here

Examples of lombok.ast.MethodDeclaration.astModifiers()

                }
            } else if (type == MethodDeclaration.class) {
                // Method
                // Look for annotations on the method
                MethodDeclaration declaration = (MethodDeclaration) scope;
                if (isSuppressed(issue, declaration.astModifiers())) {
                    return true;
                }
            } else if (type == ConstructorDeclaration.class) {
                // Constructor
                // Look for annotations on the method
View Full Code Here

Examples of lombok.ast.MethodDeclaration.astModifiers()

                }
            } else if (type == ConstructorDeclaration.class) {
                // Constructor
                // Look for annotations on the method
                ConstructorDeclaration declaration = (ConstructorDeclaration) scope;
                if (isSuppressed(issue, declaration.astModifiers())) {
                    return true;
                }
            } else if (type == ClassDeclaration.class) {
                // Class
                ClassDeclaration declaration = (ClassDeclaration) scope;
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.