Search in sources :

Example 6 with StringLiteral

use of org.eclipse.jdt.internal.compiler.ast.StringLiteral in project lombok by rzwitserloot.

the class EclipseHandlerUtil method addSuppressWarningsAll.

public static Annotation[] addSuppressWarningsAll(EclipseNode node, ASTNode source, Annotation[] originalAnnotationArray) {
    Annotation[] anns = addAnnotation(source, originalAnnotationArray, TypeConstants.JAVA_LANG_SUPPRESSWARNINGS, new StringLiteral(ALL, 0, 0, 0));
    if (Boolean.TRUE.equals(node.getAst().readConfiguration(ConfigurationKeys.ADD_FINDBUGS_SUPPRESSWARNINGS_ANNOTATIONS))) {
        MemberValuePair mvp = new MemberValuePair(JUSTIFICATION, 0, 0, new StringLiteral(GENERATED_CODE, 0, 0, 0));
        anns = addAnnotation(source, anns, EDU_UMD_CS_FINDBUGS_ANNOTATIONS_SUPPRESSFBWARNINGS, mvp);
    }
    return anns;
}
Also used : StringLiteral(org.eclipse.jdt.internal.compiler.ast.StringLiteral) MemberValuePair(org.eclipse.jdt.internal.compiler.ast.MemberValuePair) MarkerAnnotation(org.eclipse.jdt.internal.compiler.ast.MarkerAnnotation) SingleMemberAnnotation(org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation) NormalAnnotation(org.eclipse.jdt.internal.compiler.ast.NormalAnnotation) Annotation(org.eclipse.jdt.internal.compiler.ast.Annotation)

Aggregations

StringLiteral (org.eclipse.jdt.internal.compiler.ast.StringLiteral)6 QualifiedTypeReference (org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference)4 EclipseNode (lombok.eclipse.EclipseNode)2 ASTNode (org.eclipse.jdt.internal.compiler.ast.ASTNode)2 AllocationExpression (org.eclipse.jdt.internal.compiler.ast.AllocationExpression)2 Annotation (org.eclipse.jdt.internal.compiler.ast.Annotation)2 Expression (org.eclipse.jdt.internal.compiler.ast.Expression)2 FieldDeclaration (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration)2 MessageSend (org.eclipse.jdt.internal.compiler.ast.MessageSend)2 SingleMemberAnnotation (org.eclipse.jdt.internal.compiler.ast.SingleMemberAnnotation)2 ThrowStatement (org.eclipse.jdt.internal.compiler.ast.ThrowStatement)2 ToString (lombok.ToString)1 NullCheckExceptionType (lombok.core.configuration.NullCheckExceptionType)1 ArrayInitializer (org.eclipse.jdt.internal.compiler.ast.ArrayInitializer)1 ArrayQualifiedTypeReference (org.eclipse.jdt.internal.compiler.ast.ArrayQualifiedTypeReference)1 BinaryExpression (org.eclipse.jdt.internal.compiler.ast.BinaryExpression)1 Block (org.eclipse.jdt.internal.compiler.ast.Block)1 ConstructorDeclaration (org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration)1 EqualExpression (org.eclipse.jdt.internal.compiler.ast.EqualExpression)1 ExplicitConstructorCall (org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall)1