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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
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. */ 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); } } public void checkComment() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
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. */ 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); } } public void checkComment() {
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. */ 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); } } public void checkComment() {
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. */ 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.currentElement.addModifier(flag, this.modifiersSourceStart); } } public void checkComment() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {
protected void consumePushCombineModifiers() { // ModifiersWithDefault ::= Modifiersopt 'default' Modifiersopt' // int stack on entry : ... Modifiers, ModifiersSourceStart, defaultSourceStart, defaultSourceEnd, Modifiers', Modifiers'SourceStart <<--- intPtr // int stack on exit : ... combinedModifiers, combinedModifiersSourceStart <<--- intPtr this.intPtr--; // pop modifiers'SourceStart, real location is with earlier block int newModifiers = this.intStack[this.intPtr--] | ExtraCompilerModifiers.AccDefaultMethod; // pop modifiers this.intPtr -= 2; // pop location of 'default' keyword if ((this.intStack[this.intPtr - 1] & newModifiers) != 0) { // duplicate modifier(s) ? newModifiers |= ExtraCompilerModifiers.AccAlternateModifierProblem; } this.intStack[this.intPtr - 1] |= newModifiers; // merge them in place // Also fix number of annotations-modifiers: this.expressionLengthStack[this.expressionLengthPtr - 1] += this.expressionLengthStack[this.expressionLengthPtr--]; if (this.currentElement != null) { this.currentElement.addModifier(newModifiers, this.intStack[this.intPtr]); } } protected void consumePushModifiersForHeader() {