com.softicar.platform.common.core.java.classes.analyzer.InternalFieldAnalyzer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.java.classes.analyzer;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.TypePath;
class InternalFieldAnalyzer extends FieldVisitor {
private final AnalyzedJavaClass javaClass;
public InternalFieldAnalyzer(AnalyzedJavaClass javaClass) {
super(Opcodes.ASM9);
this.javaClass = javaClass;
}
@Override
public AnnotationVisitor visitAnnotation(String descriptor, boolean visible) {
javaClass.addReferencesFromSignature(descriptor);
return new InternalAnnotationAnalyzer(javaClass);
}
@Override
public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) {
javaClass.addReferencesFromSignature(descriptor);
return new InternalAnnotationAnalyzer(javaClass);
}
}