org.eclipse.jdt.internal.compiler.problem.ProblemSeverities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ecj Show documentation
Show all versions of ecj Show documentation
Eclipse Compiler for Java(TM)
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.problem;
public interface ProblemSeverities {
final int Warning = 0; // during handling only
final int Error = 1; // when bit is set: problem is error, if not it is a warning
final int AbortCompilation = 2;
final int AbortCompilationUnit = 4;
final int AbortType = 8;
final int AbortMethod = 16;
final int Abort = 30; // 2r11110
final int Optional = 32; // when bit is set: problem was configurable
final int SecondaryError = 64;
final int Fatal = 128; // when bit is set: problem was either a mandatory error, or an optional+treatOptionalErrorAsFatal
final int Ignore = 256; // during handling only
final int InternalError = 512; // always exposed, even when silent error handling policy is in effect.
final int Info = 1024; // When bit is set, the unit or project is not flagged.
final int CoreSeverityMASK = Warning | Error | Info | Ignore;
}