org.codehaus.backport175.reader.bytecode
Class AnnotationElement.Annotation
java.lang.Object
org.codehaus.backport175.reader.bytecode.AnnotationElement
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationElement.Annotation
public AnnotationElement.Annotation(java.lang.String className)
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
-