HydrationScanner.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:blcdemo 作者:
public AnnotationVisitor visitAnnotation(String arg0, boolean arg1) {
    Type annotationType = Type.getType(arg0);
    switch(stage) {
    case CLASSSTAGE: {
        if (annotationType.getClassName().equals(Cache.class.getName())){
            annotation = Cache.class.getName();
        }
        break;
    }
    case FIELDSTAGE: {
        if (annotationType.getClassName().equals(Id.class.getName())){
            idMutators.put(fieldName, retrieveMutators());
        }
        if (annotationType.getClassName().equals(Hydrated.class.getName())){
            annotation = Hydrated.class.getName();
        }
        break;
    }
    default : {
        annotation = null;
        fieldName = null;
        break;
    }
    }
    return this;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号