public class Annotation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.ElementType
Bnd ElememtType
|
| Constructor and Description |
|---|
Annotation(Descriptors.TypeRef name,
Map<String,Object> elements,
Annotation.ElementType member,
RetentionPolicy policy) |
Annotation(Descriptors.TypeRef name,
Map<String,Object> elements,
ElementType member,
RetentionPolicy policy)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaults(Clazz c) |
boolean |
containsKey(String key) |
Annotation.ElementType |
elementType() |
Set<Map.Entry<String,Object>> |
entrySet() |
<T> T |
get(String string) |
<T extends Annotation> |
getAnnotation() |
<T extends Annotation> |
getAnnotation(Class<T> c) |
<T extends Annotation> |
getAnnotation(ClassLoader cl) |
ElementType |
getElementType()
Deprecated.
|
Descriptors.TypeRef |
getName() |
RetentionPolicy |
getRetentionPolicy() |
Set<String> |
keySet() |
void |
merge(Annotation annotation) |
void |
put(String string,
Object v) |
<T> Stream<T> |
stream(String key,
Class<? extends T> type) |
String |
toString() |
public Annotation(Descriptors.TypeRef name, Map<String,Object> elements, Annotation.ElementType member, RetentionPolicy policy)
@Deprecated public Annotation(Descriptors.TypeRef name, Map<String,Object> elements, ElementType member, RetentionPolicy policy)
public Descriptors.TypeRef getName()
public Annotation.ElementType elementType()
@Deprecated public ElementType getElementType()
public RetentionPolicy getRetentionPolicy()
public <T> T get(String string)
public boolean containsKey(String key)
public <T extends Annotation> T getAnnotation() throws Exception
Exceptionpublic <T extends Annotation> T getAnnotation(ClassLoader cl) throws Exception
Exceptionpublic <T extends Annotation> T getAnnotation(Class<T> c) throws Exception
Exceptionpublic void merge(Annotation annotation)
Copyright © 2021. All rights reserved.