com.ikokoon.serenity.instrumentation.dependency
Class DependencyFieldAdapter

java.lang.Object
  extended by com.ikokoon.serenity.instrumentation.dependency.DependencyFieldAdapter
All Implemented Interfaces:
org.objectweb.asm.FieldVisitor

public class DependencyFieldAdapter
extends java.lang.Object
implements org.objectweb.asm.FieldVisitor

Visits and collects the dependency metrics for a field in a class.

Since:
09.12.09
Version:
01.00
Author:
Michael Couck

Constructor Summary
DependencyFieldAdapter(org.objectweb.asm.FieldVisitor visitor, java.lang.String className, java.lang.String description, java.lang.String signature)
          Constructor initialises a DependencyFieldAdapter and takes the parent field visitor, the name of the class the field is in, the description of the field in byte code and the signature in byte code style.
 
Method Summary
 org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
          
 void visitAttribute(org.objectweb.asm.Attribute attr)
          
 void visitEnd()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyFieldAdapter

public DependencyFieldAdapter(org.objectweb.asm.FieldVisitor visitor,
                              java.lang.String className,
                              java.lang.String description,
                              java.lang.String signature)
Constructor initialises a DependencyFieldAdapter and takes the parent field visitor, the name of the class the field is in, the description of the field in byte code and the signature in byte code style.

Parameters:
visitor - the parent field visitor
className - the name of the class he field is in
description - the byte code description of the field
signature - the byte code signature of the field
Method Detail

visitAnnotation

public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc,
                                                           boolean visible)

Specified by:
visitAnnotation in interface org.objectweb.asm.FieldVisitor

visitAttribute

public void visitAttribute(org.objectweb.asm.Attribute attr)

Specified by:
visitAttribute in interface org.objectweb.asm.FieldVisitor

visitEnd

public void visitEnd()

Specified by:
visitEnd in interface org.objectweb.asm.FieldVisitor


Copyright © 2010. All Rights Reserved.