protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderDefaultValue() { // MethodHeaderDefaultValue ::= DefaultValue MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int length = this.expressionLengthStack[this.expressionLengthPtr--]; if (length == 1) { this.intPtr--; // we get rid of the position of the default keyword this.intPtr--; // we get rid of the position of the default keyword if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).defaultValue = this.expressionStack[this.expressionPtr]; md.modifiers |= ClassFileConstants.AccAnnotationDefault; } this.expressionPtr--; this.recordStringLiterals = true; } if(this.currentElement != null) { if(md.isAnnotationMethod()) { this.currentElement.updateSourceEndIfNecessary(((AnnotationMethodDeclaration)md).defaultValue.sourceEnd); } } } protected void consumeMethodHeaderExtendedDims() {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDimensions = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDimensions; } if (extendedDimensions != 0) { md.sourceEnd = this.endPosition; md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false); md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDims = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDims; } if (extendedDims != 0) { TypeReference returnType = md.returnType; md.sourceEnd = this.endPosition; int dims = returnType.dimensions() + extendedDims; md.returnType = copyDims(returnType, dims); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
protected void consumeMethodHeaderExtendedDims() { // MethodHeaderExtendedDims ::= Dimsopt // now we update the returnType of the method MethodDeclaration md = (MethodDeclaration) this.astStack[this.astPtr]; int extendedDims = this.intStack[this.intPtr--]; if(md.isAnnotationMethod()) { ((AnnotationMethodDeclaration)md).extendedDimensions = extendedDims; } if (extendedDims != 0) { TypeReference returnType = md.returnType; md.sourceEnd = this.endPosition; int dims = returnType.dimensions() + extendedDims; md.returnType = copyDims(returnType, dims); if (this.currentToken == TokenNameLBRACE){ md.bodyStart = this.endPosition + 1; } // recovery if (this.currentElement != null){ this.lastCheckPoint = md.bodyStart; } } } protected void consumeMethodHeaderName(boolean isAnnotationMethod) {