public abstract static class Contract.BaseContract extends java.lang.Object implements Contract
Contract.BaseContract, Contract.Default| 构造器和说明 |
|---|
BaseContract() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<MethodMetadata> |
parseAndValidateMetadata(java.lang.Class<?> targetType) |
protected MethodMetadata |
parseAndValidateMetadata(java.lang.Class<?> targetType,
java.lang.reflect.Method method) |
protected abstract void |
processAnnotationOnClass(MethodMetadata data,
java.lang.Class<?> clz)
Called by parseAndValidateMetadata twice, first on the declaring class, then
on the target type (unless they are the same).
|
protected abstract void |
processAnnotationOnMethod(MethodMetadata data,
java.lang.annotation.Annotation annotation,
java.lang.reflect.Method method) |
public java.util.List<MethodMetadata> parseAndValidateMetadata(java.lang.Class<?> targetType)
parseAndValidateMetadata 在接口中 ContracttargetType - typeprotected MethodMetadata parseAndValidateMetadata(java.lang.Class<?> targetType, java.lang.reflect.Method method)
targetType - typemethod - methodprotected abstract void processAnnotationOnClass(MethodMetadata data, java.lang.Class<?> clz)
data - metadata collected so far relating to the current java method.clz - the class to processprotected abstract void processAnnotationOnMethod(MethodMetadata data, java.lang.annotation.Annotation annotation, java.lang.reflect.Method method)
data - metadata collected so far relating to the current java
method.annotation - annotations present on the current method annotation.method - method currently being processed.Copyright © 2019. All Rights Reserved.