Examples of astModifiers()


Examples of lombok.ast.MethodDeclaration.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.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

Examples of lombok.ast.MethodDeclaration.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.MethodDeclaration.astModifiers()

        decl.rawParameters().addToEnd(param);
      }
    } else DanglingNodes.addDanglingNode(decl, params);
   
    decl.astMethodName(createIdentifierIfNeeded(name, currentPos())).rawBody(body);
    if (modifiers != null) decl.astModifiers(createModifiersIfNeeded(modifiers, currentPos()));
    int extraDims = dims == null ? 0 : dims.size();
    Node returnType = resultType;
    if (extraDims > 0 && returnType instanceof TypeReference) {
      ((TypeReference)returnType).astArrayDimensions(((TypeReference)returnType).astArrayDimensions() + extraDims);
    }
View Full Code Here

Examples of lombok.ast.MethodDeclaration.astModifiers()

        return;
      }
     
      MethodDeclaration md = new MethodDeclaration();
      md.rawBody(toTree(node.getBody()));
      md.astModifiers((Modifiers) toTree(node.getModifiers()));
      md.astMethodName(setPos(node, new Identifier().astValue(name)));
      fillList(node.getThrows(), md.rawThrownTypeReferences(), FlagKey.TYPE_REFERENCE);
      fillList(node.getTypeParameters(), md.rawTypeVariables());
      fillList(node.getParameters(), md.rawParameters(), FlagKey.NO_VARDECL_FOLDING, FlagKey.VARDEF_IS_DEFINITION);
      md.rawReturnTypeReference(toTree(node.getReturnType(), FlagKey.TYPE_REFERENCE));
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

Examples of lombok.ast.MethodDeclaration.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.TypeDeclaration.astModifiers()

  }
 
  public void checkStaticInitializerInNonStaticType(StaticInitializer node) {
    TypeDeclaration parent = node.upUpToTypeDeclaration();
    if (parent != null) {
      if (!parent.astModifiers().isStatic()) {
        node.addMessage(error(INITIALIZER_STATIC_IN_NON_STATIC_TYPE,
            "static initializers are only allowed in top-level or static types declarations."));
      }
    }
  }
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.