public abstract class AbstractTypeMocker<A extends Annotation> extends Object implements TypeMocker<A>
| 构造器和说明 |
|---|
AbstractTypeMocker() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract boolean |
accept(A annotation) |
boolean |
accept(A mockAnnotation,
Type targetType) |
protected static Class<?> |
getClassFromType(Type targetType) |
protected abstract Class<?>[] |
getSupportedClasses() |
Object |
mock(A mockAnnotation,
Mock.Nullable nullable,
Type targetType) |
abstract Object |
mock(A mockAnnotation,
Type targetType) |
protected abstract Class<?>[] getSupportedClasses()
protected abstract boolean accept(A annotation)
public boolean accept(A mockAnnotation, Type targetType)
accept 在接口中 TypeMocker<A extends Annotation>public Object mock(A mockAnnotation, Mock.Nullable nullable, Type targetType)
mock 在接口中 TypeMocker<A extends Annotation>Copyright © 2021. All rights reserved.