Example usage for org.eclipse.jdt.internal.compiler.problem AbortMethod AbortMethod

List of usage examples for org.eclipse.jdt.internal.compiler.problem AbortMethod AbortMethod

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.problem AbortMethod AbortMethod.

Prototype

public AbortMethod(CompilationResult compilationResult, CategorizedProblem problem) 

Source Link

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.compiler.ast.AbstractMethodMappingDeclaration.java

License:Open Source License

public void abort(int abortLevel, CategorizedProblem problem) {
    switch (abortLevel) {
    case AbortCompilation:
        throw new AbortCompilation(this.compilationResult, problem);
    case AbortCompilationUnit:
        throw new AbortCompilationUnit(this.compilationResult, problem);
    case AbortType:
        throw new AbortType(this.compilationResult, problem);
    default://from w w  w  .  j  a  v  a 2  s .c  om
        throw new AbortMethod(this.compilationResult, problem);
    }
}