Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package cn.wensiqun.visitor.annotated;
 
 import java.util.List;
 
 import  org.objectweb.asm.AnnotationVisitor;
 import  org.objectweb.asm.Attribute;
 import  org.objectweb.asm.FieldVisitor;
 import  org.objectweb.asm.commons.EmptyVisitor;
public class FieldDefVisitor extends CommonDef implements FieldVisitor {
	private FieldInfo info;
	public FieldDefVisitor(GrepRobotInternal grepClientFieldInfo info) {
		super(grepClient);
		this. = info;
		this. = grepClient.getFieldGrep();
	}
	public AnnotationVisitor visitAnnotation(String descboolean visible) {
		AnnotationInfo annotationInfo = new AnnotationInfo(desc);
	        .getAnnotations().add(annotationInfo);
	        List<FieldInfoinfos = .getAnnotatedFieldMap().get(annotationInfo.getName());
	        if (infos == null) {
	            infos = new ArrayList<FieldInfo>();
	            .getAnnotatedFieldMap().put(annotationInfo.getName(), infos);
	        }
	        infos.add();
	        return new AnnotationDefVisitor(annotationInfo);
		}else{
			return new EmptyVisitor();
		}
	}
	public void visitAttribute(Attribute attr) {
	}
	public void visitEnd() {
	}
New to GrepCode? Check out our FAQ X