|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jst.ws.annotations.core.AnnotationsManager
public final class AnnotationsManager
Manages the annotation categories, definitions, processors and initializers contributed through the
org.eclipse.jst.ws.annotations.core.annotationDefinition,
org.eclipse.jst.ws.annotations.core.annotationCategory,
org.eclipse.jst.ws.annotations.core.annotationInitializer and
org.eclipse.jst.ws.annotations.core.annotationProcessor extension points.
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.
| Method Summary | |
|---|---|
static IAnnotationAttributeInitializer |
getAnnotationAttributeInitializerForName(org.eclipse.jdt.core.dom.Name name)
Returns the IAnnotationAttributeInitializer for the given Name
or null if none can be found. |
static java.util.List<java.lang.String> |
getAnnotationCategories()
Returns a list of the annotation categories. |
static AnnotationDefinition |
getAnnotationDefinitionForClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns the AnnotationDefinition for the given Annotation class
or null if no annotation definition can be found. |
static AnnotationDefinition |
getAnnotationDefinitionForClass(java.lang.String canonicalName)
Returns the AnnotationDefinition for the given fully qualified Annotation class
name or null if no annotation definition can be found. |
static AnnotationDefinition |
getAnnotationDefinitionForType(org.eclipse.jdt.core.IType annotationType)
Returns the AnnotationDefinition for the given IType
or null if no annotation definition can be found. |
static java.util.Map<java.lang.String,java.util.List<org.eclipse.core.runtime.IConfigurationElement>> |
getAnnotationProcessorsCache()
|
static java.util.List<AnnotationDefinition> |
getAnnotations()
Returns a list of AnnotationDefinition constructed from contributions to the
org.eclipse.jst.ws.annotations.core.annotationDefinition extension point. |
static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotations(org.eclipse.jdt.core.IJavaElement javaElement)
Deprecated. As of 1.1 replaced by getAnnotationTypes(IJavaElement) |
static java.util.List<AnnotationDefinition> |
getAnnotationsByCategory(java.lang.String categoryName)
Returns a list of all the AnnotationDefinition with the given annotation category name. |
static java.util.List<org.eclipse.jdt.core.IType> |
getAnnotationTypes(org.eclipse.jdt.core.IJavaElement javaElement)
Returns a list of all the contributed annotations that target the given IJavaElement. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<AnnotationDefinition> getAnnotations()
AnnotationDefinition constructed from contributions to the
org.eclipse.jst.ws.annotations.core.annotationDefinition extension point.
public static java.util.List<org.eclipse.jdt.core.IType> getAnnotationTypes(org.eclipse.jdt.core.IJavaElement javaElement)
IJavaElement.
javaElement - one of
@Deprecated public static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotations(org.eclipse.jdt.core.IJavaElement javaElement)
getAnnotationTypes(IJavaElement)
Annotation that target the given java element type.
javaElement - one of
public static AnnotationDefinition getAnnotationDefinitionForClass(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
AnnotationDefinition for the given Annotation class
or null if no annotation definition can be found.
annotationClass - the java.lang.annotation.Annotation class.
java.lang.annotation.Annotation class.public static AnnotationDefinition getAnnotationDefinitionForClass(java.lang.String canonicalName)
AnnotationDefinition for the given fully qualified Annotation class
name or null if no annotation definition can be found.
canonicalName - the fully qualified name of the java.lang.annotation.Annotation class.
java.lang.annotation.Annotation class name.public static AnnotationDefinition getAnnotationDefinitionForType(org.eclipse.jdt.core.IType annotationType)
AnnotationDefinition for the given IType
or null if no annotation definition can be found.
annotationType - an org.eclipse.jdt.core.IType which represents an annotation type.
org.eclipse.jdt.core.IType.public static IAnnotationAttributeInitializer getAnnotationAttributeInitializerForName(org.eclipse.jdt.core.dom.Name name)
IAnnotationAttributeInitializer for the given Name
or null if none can be found.
name - a SimpleName or QualifiedName for the annotation to search for.
IAnnotationAttributeInitializer for the given name.public static java.util.List<AnnotationDefinition> getAnnotationsByCategory(java.lang.String categoryName)
AnnotationDefinition with the given annotation category name.
categoryName - the annotation category name.
public static java.util.List<java.lang.String> getAnnotationCategories()
public static java.util.Map<java.lang.String,java.util.List<org.eclipse.core.runtime.IConfigurationElement>> getAnnotationProcessorsCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||