/******************************************************************************* * Copyright (c) 2011 Gerd Wuetherich (gerd@gerd-wuetherich.de). * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Gerd Wuetherich (gerd@gerd-wuetherich.de) - initial API and implementation ******************************************************************************/ package org.bundlemaker.core.parser.bytecode.asm; import org.bundlemaker.core.jtype.ReferenceAttributes; import org.bundlemaker.core.jtype.ReferenceType; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.FieldVisitor; import org.objectweb.asm.Type; import org.objectweb.asm.commons.EmptyVisitor; public class ArtefactAnalyserFieldVisitor extends EmptyVisitor implements FieldVisitor { /** - */ private final AsmReferenceRecorder _recorder; /** * @param recorder */ ArtefactAnalyserFieldVisitor(AsmReferenceRecorder recorder) { _recorder = recorder; } /** * {@inheritDoc} */ public AnnotationVisitor visitAnnotation(String desc, boolean visible) { // Type t = Type.getType(desc); // uses _recorder.recordReference(VisitorUtils.getFullyQualifiedTypeName(t), new ReferenceAttributes( ReferenceType.TYPE_REFERENCE, false, false, false, false, true, true, false)); return null; } }