public class DefinitionContextImpl extends Object implements DefinitionContext
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
优先级:
annotationClass不可覆盖时:
- method
- method.declaringClass
- moduleClass
annotationClass可覆盖时:
- method
- moduleClass
- method.declaringClass
|
protected <T extends Annotation> |
getAnnotationFrom(Class<T> annotationClass,
AnnotatedElement... accessibleObjects) |
<T extends Annotation> |
getDeclaringAnnotation(Class<T> annotationClass) |
Class<?> |
getDeclaringClass() |
Method |
getDeclaringMethod() |
String |
getModuleName() |
public Class<?> getDeclaringClass()
getDeclaringClass 在接口中 DefinitionContextpublic Method getDeclaringMethod()
getDeclaringMethod 在接口中 DefinitionContextpublic String getModuleName()
getModuleName 在接口中 DefinitionContextpublic final <T extends Annotation> T getDeclaringAnnotation(Class<T> annotationClass)
getDeclaringAnnotation 在接口中 DefinitionContextT - annotationClass - annotationClasspublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
annotationClass可覆盖时: - method - moduleClass - method.declaringClass
getAnnotation 在接口中 DefinitionContextT - annotationClass - annotationClassprotected <T extends Annotation> T getAnnotationFrom(Class<T> annotationClass, AnnotatedElement... accessibleObjects)
Copyright © 2021. All rights reserved.