public interface Annotatable
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotationsAttributeEntry(boolean runtimeVisible,
String fieldDescriptor,
Map<Short,ClassFile.AnnotationsAttribute.ElementValue> elementValuePairs)
Adds a "Runtime[In]visibleAnnotations" attribute to
this object (if that annotation does not yet exist)
and adds an entry to it. |
ClassFile.AnnotationsAttribute.Annotation[] |
getAnnotations(boolean runtimeVisible) |
ClassFile.AnnotationsAttribute.Annotation[] getAnnotations(boolean runtimeVisible)
void addAnnotationsAttributeEntry(boolean runtimeVisible,
String fieldDescriptor,
Map<Short,ClassFile.AnnotationsAttribute.ElementValue> elementValuePairs)
this object (if that annotation does not yet exist)
and adds an entry to it.elementValuePairs - Maps "elemant_name_index" (ClassFile.ConstantUtf8Info) to "element_value", see JVMS8
4.7.16