com.tc.backport175.bytecode
Class AnnotationElement.Annotation

java.lang.Object
  extended by com.tc.backport175.bytecode.AnnotationElement
      extended by com.tc.backport175.bytecode.AnnotationElement.Annotation
All Implemented Interfaces:
AnnotationElement.NestedAnnotationElement, java.io.Serializable
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 com.tc.backport175.bytecode.AnnotationElement
AnnotationElement.Annotation, AnnotationElement.Array, AnnotationElement.Enum, AnnotationElement.NamedValue, AnnotationElement.NestedAnnotationElement, AnnotationElement.Type
 
Field Summary
 
Fields inherited from class com.tc.backport175.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 -


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.