org.jboss.seam.solder.reflection.annotated
Class RedefinitionContext<A extends Annotation>

java.lang.Object
  extended by org.jboss.seam.solder.reflection.annotated.RedefinitionContext<A>

public class RedefinitionContext<A extends Annotation>
extends Object

Provides access to the context of an annotation redefinition.

Author:
Pete Muir
See Also:
AnnotatedTypeBuilder, AnnotationRedefiner

Method Summary
 AnnotatedElement getAnnotatedElement()
          Access to the AnnotatedElement on which this annotation is defined.
 AnnotationBuilder getAnnotationBuilder()
          Access to the annotations present on the element.
 Type getBaseType()
          Access to the Type of the element on which this annotation is defined
 String getElementName()
          Access to the name of the element, or null if this represents a constructor or parameter.
 Class<?> getRawType()
          Access to the raw type of the element on which the annotation is defined
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnnotatedElement

public AnnotatedElement getAnnotatedElement()
Access to the AnnotatedElement on which this annotation is defined. If the annotation is defined on a Field, this may be cast to Field, if defined on a method, this may be cast to Method, if defined on a constructor, this may be cast to Constructor or if defined on a parameter, this may be cast to Parameter


getBaseType

public Type getBaseType()
Access to the Type of the element on which this annotation is defined


getRawType

public Class<?> getRawType()
Access to the raw type of the element on which the annotation is defined

Returns:

getAnnotationBuilder

public AnnotationBuilder getAnnotationBuilder()
Access to the annotations present on the element. It is safe to modify the annotations present using the AnnotationBuilder


getElementName

public String getElementName()
Access to the name of the element, or null if this represents a constructor or parameter.



Copyright © 2008-2011 Seam Framework. All Rights Reserved.