Example usage for org.eclipse.jdt.internal.compiler.lookup ExtraCompilerModifiers AccAlternateModifierProblem

List of usage examples for org.eclipse.jdt.internal.compiler.lookup ExtraCompilerModifiers AccAlternateModifierProblem

Introduction

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

Prototype

int AccAlternateModifierProblem

To view the source code for org.eclipse.jdt.internal.compiler.lookup ExtraCompilerModifiers AccAlternateModifierProblem.

Click Source Link

Usage

From source file:org.eclipse.jdt.internal.compiler.parser.Parser.java

License:Open Source License

protected void checkAndSetModifiers(int flag) {
    /*modify the current modifiers buffer.
    When the startPosition of the modifiers is 0
    it means that the modifier being parsed is the first
    of a list of several modifiers. The startPosition
    is zeroed when a copy of modifiers-buffer is push
    onto the this.astStack. *//*from  w w  w  .j  a v  a2  s  .  co m*/

    if ((this.modifiers & flag) != 0) { // duplicate modifier
        this.modifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem;
    }
    this.modifiers |= flag;

    if (this.modifiersSourceStart < 0)
        this.modifiersSourceStart = this.scanner.startPosition;

    if (this.currentElement != null && this.annotationRecoveryActivated) {
        this.currentElement.addModifier(flag, this.modifiersSourceStart);
    }
}