public class AbstractMetadata extends Object implements Metadata
| Constructor and Description |
|---|
AbstractMetadata() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
addAnnotation(AnnotationMetadata<T> annotationMetadata) |
Metadata |
addAttribute(String key,
Object value) |
Metadata |
addProcessorResult(Class<? extends Annotation> annotationType,
Annotation process) |
<T extends Annotation> |
getAnnotation(Class<T> clazz) |
<T> T |
getAttribute(String key,
Class<T> clazz) |
<T> T |
getAttribute(String key,
Class<T> clazz,
T defaultValue) |
<T extends Annotation> |
getProcessorResult(Class<T> annotationClass) |
boolean |
hasAttribute(String key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotations, getAttributes, getName, getProcessorsResultpublic <T> T getAttribute(String key, Class<T> clazz)
getAttribute in interface Metadatapublic <T> T getAttribute(String key, Class<T> clazz, T defaultValue)
getAttribute in interface Metadatapublic boolean hasAttribute(String key)
hasAttribute in interface Metadatapublic <T extends Annotation> AnnotationMetadata<T> getAnnotation(Class<T> clazz)
getAnnotation in interface Metadatapublic <T extends Annotation> T getProcessorResult(Class<T> annotationClass)
getProcessorResult in interface Metadatapublic Metadata addAttribute(String key, Object value)
addAttribute in interface Metadatapublic <T extends Annotation> Metadata addAnnotation(AnnotationMetadata<T> annotationMetadata)
public Metadata addProcessorResult(Class<? extends Annotation> annotationType, Annotation process)
Copyright © 2023. All rights reserved.