public class Annotation extends Object
Constructor and Description |
---|
Annotation(Descriptors.TypeRef name,
Map<String,Object> elements,
ElementType member,
RetentionPolicy policy) |
Modifier and Type | Method and Description |
---|---|
void |
addDefaults(Clazz c) |
<T> T |
get(String string) |
<T extends Annotation> |
getAnnotation() |
<T extends Annotation> |
getAnnotation(Class<T> c) |
<T extends Annotation> |
getAnnotation(ClassLoader cl) |
ElementType |
getElementType() |
Descriptors.TypeRef |
getName() |
RetentionPolicy |
getRetentionPolicy() |
Set<String> |
keySet() |
void |
merge(Annotation annotation) |
<T> void |
put(String string,
Object v) |
String |
toString() |
public Annotation(Descriptors.TypeRef name, Map<String,Object> elements, ElementType member, RetentionPolicy policy)
public Descriptors.TypeRef getName()
public ElementType getElementType()
public RetentionPolicy getRetentionPolicy()
public <T> T get(String string)
public <T extends Annotation> T getAnnotation() throws Exception
Exception
public <T extends Annotation> T getAnnotation(ClassLoader cl) throws Exception
Exception
public <T extends Annotation> T getAnnotation(Class<T> c) throws Exception
Exception
public void merge(Annotation annotation)
Copyright © 2021 aQute SARL. All rights reserved.