com.github.risedragon.mysql.asm.ForeignKeyAnnotationVisitor Maven / Gradle / Ivy
package com.github.risedragon.mysql.asm;
import java.util.List;
import org.springframework.asm.AnnotationVisitor;
import org.springframework.asm.SpringAsmInfo;
import com.github.risedragon.mysql.data.ReferenceAnnotation;
class ForeignKeyAnnotationVisitor extends AnnotationVisitor {
final List data;
public ForeignKeyAnnotationVisitor(List data) {
super(SpringAsmInfo.ASM_VERSION);
this.data = data;
}
@Override
public AnnotationVisitor visitArray(String name) {
return this; // 只有value
}
@Override
public AnnotationVisitor visitAnnotation(String name, String desc) {
ReferenceAnnotation reference = new ReferenceAnnotation();
data.add(reference);
return new ReferenceAnnotationVisitor(reference);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy