org.apache.webbeans.portable
Class AnnotatedFieldImpl<X>

java.lang.Object
  extended by org.apache.webbeans.portable.AnnotatedFieldImpl<X>
Type Parameters:
X -
All Implemented Interfaces:
Annotated, AnnotatedField<X>, AnnotatedMember<X>

public class AnnotatedFieldImpl<X>
extends Object
implements AnnotatedField<X>

Implementation of AnnotatedField interface.

Version:
$Rev: 952250 $ $Date: 2010-06-07 16:39:41 +0200 (Mo, 07 Jun 2010) $

Field Summary
protected  Member javaMember
          Member type
 
Method Summary
protected  void addAnnotation(Annotation annotation)
          Adds new annotation to set.
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
          
 Set<Annotation> getAnnotations()
          
 Type getBaseType()
          
 AnnotatedType<X> getDeclaringType()
          
 Field getJavaMember()
          
 Set<Type> getTypeClosure()
          
 boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
          
 boolean isStatic()
          
protected  void setAnnotations(Annotation[] annotations)
          Adds new annotation to set.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
getDeclaringType, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Field Detail

javaMember

protected final Member javaMember
Member type

Method Detail

getJavaMember

public Field getJavaMember()

Specified by:
getJavaMember in interface AnnotatedField<X>
Specified by:
getJavaMember in interface AnnotatedMember<X>

toString

public String toString()

getDeclaringType

public AnnotatedType<X> getDeclaringType()

Specified by:
getDeclaringType in interface AnnotatedMember<X>

isStatic

public boolean isStatic()

Specified by:
isStatic in interface AnnotatedMember<X>

addAnnotation

protected void addAnnotation(Annotation annotation)
Adds new annotation to set.

Parameters:
annotation - new annotation

setAnnotations

protected void setAnnotations(Annotation[] annotations)
Adds new annotation to set.

Parameters:
annotation - new annotation

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType)

Specified by:
getAnnotation in interface Annotated

getAnnotations

public Set<Annotation> getAnnotations()

Specified by:
getAnnotations in interface Annotated

getBaseType

public Type getBaseType()

Specified by:
getBaseType in interface Annotated

getTypeClosure

public Set<Type> getTypeClosure()

Specified by:
getTypeClosure in interface Annotated

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)

Specified by:
isAnnotationPresent in interface Annotated


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.