1 /*******************************************************************************
2 * Copyright (c) 2005, 2008 BEA Systems, Inc.
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
9 * tyeung@bea.com - initial API and implementation
10 * IBM Corporation - changed interface to extend IBinding
11 * IBM Corporation - renamed from IResolvedAnnotation to IAnnotationBinding
12 *******************************************************************************/
13 package net.sourceforge.phpdt.core.dom;
16 * Represents a resolved annotation. Resolved annotations are computed along with other
17 * bindings; they correspond to {@link Annotation} nodes.
20 * @noimplement This interface is not intended to be implemented by clients.
22 public interface IAnnotationBinding extends IBinding {
25 * Returns the complete list of member value pairs for this annotation, including
26 * ones explicitly listed in the annotation as well as entries for
27 * annotation type members with default values that are implied.
29 * @return a possibly empty list of resolved member value pairs
31 IMemberValuePairBinding[] getAllMemberValuePairs();
34 * Returns the type of the annotation. The resulting type binding will always
35 * return <code>true</code> to <code>ITypeBinding.isAnnotation()</code>.
37 * @return the type of the annotation
39 ITypeBinding getAnnotationType();
42 * Returns the list of declared member value pairs for this annotation.
43 * Returns an empty list for a {@link MarkerAnnotation}, a one element
44 * list for a {@link SingleMemberAnnotation}, and one entry for each
45 * of the explicitly listed values in a {@link NormalAnnotation}.
47 * Note that the list only includes entries for annotation type members that are
48 * explicitly mentioned in the annotation. The list does not include any
49 * annotation type members with default values that are merely implied.
50 * Use {@link #getAllMemberValuePairs()} to get those as well.
53 * @return a possibly empty list of resolved member value pairs
55 IMemberValuePairBinding[] getDeclaredMemberValuePairs();
58 * Returns the name of the annotation type.
60 * @return the name of the annotation type
62 public String getName();