KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > ast > MarkerAnnotation


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 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     
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      */

33     public MemberValuePair[] memberValuePairs() {
34         return NoValuePairs;
35     }
36     
37     public void traverse(ASTVisitor visitor, BlockScope scope) {
38         visitor.visit(this, scope);
39         visitor.endVisit(this, scope);
40     }
41 }
42
Popular Tags