Example usage for org.eclipse.jdt.internal.compiler.lookup ProblemReasons NoError

List of usage examples for org.eclipse.jdt.internal.compiler.lookup ProblemReasons NoError

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup ProblemReasons NoError.

Prototype

int NoError

To view the source code for org.eclipse.jdt.internal.compiler.lookup ProblemReasons NoError.

Click Source Link

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.compiler.lookup.CallinCalloutBinding.java

License:Open Source License

/** Get the problemId of the first erroneous method binding or NoError. */
public int problemId() {
    if (this._roleMethodBinding != null && !this._roleMethodBinding.isValidBinding())
        return this._roleMethodBinding.problemId();
    if (this._baseMethods != null)
        for (MethodBinding method : this._baseMethods)
            if (!method.isValidBinding())
                return method.problemId();
    if (this._baseField != null)
        return this._baseField.problemId();
    return ProblemReasons.NoError;
}