org.eclipse.jst.ws.annotations.core.initialization
Class DefaultsAnnotationAttributeInitializer

java.lang.Object
  extended by org.eclipse.jst.ws.annotations.core.initialization.AnnotationAttributeInitializer
      extended by org.eclipse.jst.ws.annotations.core.initialization.DefaultsAnnotationAttributeInitializer
All Implemented Interfaces:
IAnnotationAttributeInitializer

public class DefaultsAnnotationAttributeInitializer
extends AnnotationAttributeInitializer

Constructs MemberValuePair from the defaults found in the given Annotation.

Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
 
Fields inherited from class org.eclipse.jst.ws.annotations.core.initialization.AnnotationAttributeInitializer
MISSING_IDENTIFER
 
Constructor Summary
DefaultsAnnotationAttributeInitializer()
           
 
Method Summary
 java.util.List<org.eclipse.jdt.core.dom.MemberValuePair> getMemberValuePairs(org.eclipse.jdt.core.IJavaElement javaElement, org.eclipse.jdt.core.dom.AST ast, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
          Constructs a list of MemberValuePair using the declared method names and default values in the given Annotation.
 
Methods inherited from class org.eclipse.jst.ws.annotations.core.initialization.AnnotationAttributeInitializer
createCompletionProposal, createCompletionProposal, getCompletionProposalsForMemberValuePair, getCompletionProposalsForSingleMemberAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultsAnnotationAttributeInitializer

public DefaultsAnnotationAttributeInitializer()
Method Detail

getMemberValuePairs

public java.util.List<org.eclipse.jdt.core.dom.MemberValuePair> getMemberValuePairs(org.eclipse.jdt.core.IJavaElement javaElement,
                                                                                    org.eclipse.jdt.core.dom.AST ast,
                                                                                    java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Constructs a list of MemberValuePair using the declared method names and default values in the given Annotation.

Specified by:
getMemberValuePairs in interface IAnnotationAttributeInitializer
Overrides:
getMemberValuePairs in class AnnotationAttributeInitializer
Parameters:
javaElement - the java element on which the annotation is declared.
ast - the AST with which to create the member value pairs.
annotationClass - the Annotation class which may be used to query the declared members of the annotation type and the members default values.
Returns:
a list of member value pairs.
See Also:
IAnnotationAttributeInitializer.getMemberValuePairs(org.eclipse.jdt.core.IJavaElement, org.eclipse.jdt.core.dom.AST, java.lang.Class)