org.glassfish.hk2.classmodel.reflect.impl
Class AnnotationModelImpl

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.AnnotationModelImpl
All Implemented Interfaces:
AnnotationModel

public class AnnotationModelImpl
extends Object
implements AnnotationModel

Model a annotation instance


Constructor Summary
AnnotationModelImpl(AnnotatedElement element, AnnotationType type)
           
 
Method Summary
 void addValue(String name, Object value)
           
 AnnotatedElement getElement()
          Returns the annotated element with this annotation instance
 AnnotationType getType()
          Returns the annotation type for this model
 Map<String,Object> getValues()
          Returns an unmodifiable collection of annotation values.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationModelImpl

public AnnotationModelImpl(AnnotatedElement element,
                           AnnotationType type)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

addValue

public void addValue(String name,
                     Object value)

getValues

public Map<String,Object> getValues()
Description copied from interface: AnnotationModel
Returns an unmodifiable collection of annotation values.

Specified by:
getValues in interface AnnotationModel
Returns:
collection of value elements of this annotation

getType

public AnnotationType getType()
Description copied from interface: AnnotationModel
Returns the annotation type for this model

Specified by:
getType in interface AnnotationModel
Returns:
the annotation type

getElement

public AnnotatedElement getElement()
Description copied from interface: AnnotationModel
Returns the annotated element with this annotation instance

Specified by:
getElement in interface AnnotationModel
Returns:
the annotated element


Copyright © 2013 Oracle Corporation. All Rights Reserved.