public static class AnnotationElement.Annotation extends AnnotationElement implements AnnotationElement.NestedAnnotationElement
AnnotationElement.Annotation, AnnotationElement.Array, AnnotationElement.Enum, AnnotationElement.NamedValue, AnnotationElement.NestedAnnotationElement, AnnotationElement.TypeDEFAULT_VALUE_NAME| Constructor and Description |
|---|
AnnotationElement.Annotation(java.lang.String className) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public AnnotationElement.Annotation(java.lang.String className)
public void addElement(java.lang.String name,
java.lang.Object element)
addElement in interface AnnotationElement.NestedAnnotationElementpublic java.lang.String getInterfaceName()
public java.util.List getElements()
getElements in interface AnnotationElement.NestedAnnotationElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic void mergeDefaultedElement(AnnotationElement.NamedValue defaultedElement)
defaultedElement -