com.tc.backport175.bytecode
Class AnnotationElement.Annotation
java.lang.Object
com.tc.backport175.bytecode.AnnotationElement
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
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
-
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.