1 /******************************************************************************* 2 * Copyright (c) 2005, 2012 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 /* 12 * Created on 2004-03-11 13 * 14 * To change the template for this generated file go to 15 * Window - Preferences - Java - Code Generation - Code and Comments 16 */ 17 package org.eclipse.jdt.internal.compiler.ast; 18 19 import org.eclipse.jdt.internal.compiler.ASTVisitor; 20 import org.eclipse.jdt.internal.compiler.lookup.*; 21 22 public class MarkerAnnotation extends Annotation { 23 MarkerAnnotation(TypeReference type, int sourceStart)24 public MarkerAnnotation(TypeReference type, int sourceStart) { 25 this.type = type; 26 this.sourceStart = sourceStart; 27 this.sourceEnd = type.sourceEnd; 28 } 29 30 /** 31 * @see org.eclipse.jdt.internal.compiler.ast.Annotation#memberValuePairs() 32 */ memberValuePairs()33 public MemberValuePair[] memberValuePairs() { 34 return NoValuePairs; 35 } 36 traverse(ASTVisitor visitor, BlockScope scope)37 public void traverse(ASTVisitor visitor, BlockScope scope) { 38 if (visitor.visit(this, scope)) { 39 if (this.type != null) { 40 this.type.traverse(visitor, scope); 41 } 42 } 43 visitor.endVisit(this, scope); 44 } traverse(ASTVisitor visitor, ClassScope scope)45 public void traverse(ASTVisitor visitor, ClassScope scope) { 46 if (visitor.visit(this, scope)) { 47 if (this.type != null) { 48 this.type.traverse(visitor, scope); 49 } 50 } 51 visitor.endVisit(this, scope); 52 } 53 } 54