org.codehaus.backport175.reader.bytecode
Class AnnotationElement.Annotation

java.lang.Object
  extended by org.codehaus.backport175.reader.bytecode.AnnotationElement
      extended by org.codehaus.backport175.reader.bytecode.AnnotationElement.Annotation
All Implemented Interfaces:
java.io.Serializable, AnnotationElement.NestedAnnotationElement
Enclosing class:
AnnotationElement

public static class AnnotationElement.Annotation
extends AnnotationElement
implements AnnotationElement.NestedAnnotationElement

Abstraction for the annotation element type.

Author:
Jonas Bon?r
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.backport175.reader.bytecode.AnnotationElement
AnnotationElement.Annotation, AnnotationElement.Array, AnnotationElement.Enum, AnnotationElement.NamedValue, AnnotationElement.NestedAnnotationElement, AnnotationElement.Type
 
Field Summary
 
Fields inherited from class org.codehaus.backport175.reader.bytecode.AnnotationElement
DEFAULT_VALUE_NAME
 
Constructor Summary
AnnotationElement.Annotation(java.lang.String className)
           
 
Method Summary
 void addElement(java.lang.String name, java.lang.Object element)
           
 java.util.List getElements()
           
 java.lang.String getInterfaceName()
           
 void mergeDefaultedElement(AnnotationElement.NamedValue defaultedElement)
          Add the given element if not already present ie default value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationElement.Annotation

public AnnotationElement.Annotation(java.lang.String className)
Method Detail

addElement

public void addElement(java.lang.String name,
                       java.lang.Object element)
Specified by:
addElement in interface AnnotationElement.NestedAnnotationElement

getInterfaceName

public java.lang.String getInterfaceName()
Returns:
the annotation class name, java formatted (dot)

getElements

public java.util.List getElements()
Specified by:
getElements in interface AnnotationElement.NestedAnnotationElement

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

mergeDefaultedElement

public void mergeDefaultedElement(AnnotationElement.NamedValue defaultedElement)
Add the given element if not already present ie default value

Parameters:
defaultedElement -