01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.compiler.ast;
11:
12: import org.eclipse.jdt.internal.compiler.ASTVisitor;
13: import org.eclipse.jdt.internal.compiler.lookup.*;
14:
15: public class MarkerAnnotation extends Annotation {
16:
17: public MarkerAnnotation(TypeReference type, int sourceStart) {
18: this .type = type;
19: this .sourceStart = sourceStart;
20: this .sourceEnd = type.sourceEnd;
21: }
22:
23: /**
24: * @see org.eclipse.jdt.internal.compiler.ast.Annotation#memberValuePairs()
25: */
26: public MemberValuePair[] memberValuePairs() {
27: return NoValuePairs;
28: }
29:
30: public void traverse(ASTVisitor visitor, BlockScope scope) {
31: visitor.visit(this, scope);
32: visitor.endVisit(this, scope);
33: }
34: }
|