Eclipse JDT
Release 3.1

org.eclipse.jdt.core.dom
Interface IResolvedAnnotation


public interface IResolvedAnnotation

Represents an resolved annotation. Resolved annotation are computed along with other bindings; they correspond to Annotation nodes.

Since:
3.2

Method Summary
 IResolvedMemberValuePair[] getAllMemberValuePairs()
          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.
 ITypeBinding getAnnotationType()
          Returns the type of the annotation.
 IResolvedMemberValuePair[] getDeclaredMemberValuePairs()
          Returns the list of declared member value pairs for this annotation.
 

Method Detail

getAnnotationType

public ITypeBinding getAnnotationType()
Returns the type of the annotation. The resulting type binding will always return true to ITypeBinding.isAnnotation().

Returns:
the type of the annotation

getDeclaredMemberValuePairs

public IResolvedMemberValuePair[] getDeclaredMemberValuePairs()
Returns the list of declared member value pairs for this annotation. Returns an empty list for a MarkerAnnotation, a one element list for a SingleMemberAnnotation, and one entry for each of the explicitly listed values in a 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 getAllMemberValuePairs() to get those as well.

Returns:
a possibly empty list of resolved member value pairs

getAllMemberValuePairs

public IResolvedMemberValuePair[] getAllMemberValuePairs()
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.

Returns:
a possibly empty list of resolved member value pairs

Eclipse JDT
Release 3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.