
com.github.obase.mysql.asm.ForeignKeyAnnotationVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of obase-mysql Show documentation
Show all versions of obase-mysql Show documentation
A very simple/efficient Mysql Client Framework
The newest version!
package com.github.obase.mysql.asm;
import java.util.List;
import org.springframework.asm.AnnotationVisitor;
import org.springframework.asm.SpringAsmInfo;
import com.github.obase.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