All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aspectj.org.eclipse.jdt.core.dom.IAnnotationBinding Maven / Gradle / Ivy

There is a newer version: 1.9.22.1
Show newest version
/*******************************************************************************
 * Copyright (c) 2005, 2007 BEA Systems, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    [email protected] - initial API and implementation
 *    IBM Corporation - changed interface to extend IBinding
 *    IBM Corporation - renamed from IResolvedAnnotation to IAnnotationBinding
 *******************************************************************************/
package org.aspectj.org.eclipse.jdt.core.dom;

/**
 * Represents an resolved annotation. Resolved annotation are computed along with other
 * bindings; they correspond to {@link Annotation} nodes.
 * 

* This interface is not intended to be implemented by clients. *

* * @since 3.2 */ public interface IAnnotationBinding extends IBinding { /** * Returns the complete list of member value pairs for this annotation, including * ones explicitly listed in the annotation as well as entries for * annotation type members with default values that are implied. * * @return a possibly empty list of resolved member value pairs */ IMemberValuePairBinding[] getAllMemberValuePairs(); /** * Returns the type of the annotation. The resulting type binding will always * return true to ITypeBinding.isAnnotation(). * * @return the type of the annotation */ ITypeBinding getAnnotationType(); /** * Returns the list of declared member value pairs for this annotation. * Returns an empty list for a {@link MarkerAnnotation}, a one element * list for a {@link SingleMemberAnnotation}, and one entry for each * of the explicitly listed values in a {@link NormalAnnotation}. *

* Note that the list only includes entries for annotation type members that are * explicitly mentioned in the annotation. The list does not include any * annotation type members with default values that are merely implied. * Use {@link #getAllMemberValuePairs()} to get those as well. *

* * @return a possibly empty list of resolved member value pairs */ IMemberValuePairBinding[] getDeclaredMemberValuePairs(); /** * Returns the name of the annotation type. * * @return the name of the annotation type */ public String getName(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy