com.ikokoon.serenity.instrumentation.complexity
Class ComplexityClassAdapter
java.lang.Object
org.objectweb.asm.ClassAdapter
com.ikokoon.serenity.instrumentation.complexity.ComplexityClassAdapter
- All Implemented Interfaces:
- org.objectweb.asm.ClassVisitor
public class ComplexityClassAdapter
- extends org.objectweb.asm.ClassAdapter
This is the top level class adapter for collecting the complexity for the classes. It just calls the complexity method adapter where the real work
happens.
- Since:
- 12.07.09
- Version:
- 01.00
- Author:
- Michael Couck
| Fields inherited from class org.objectweb.asm.ClassAdapter |
cv |
|
Constructor Summary |
ComplexityClassAdapter(org.objectweb.asm.ClassVisitor visitor,
java.lang.String className)
Constructor initialises a ComplexityClassAdapter ComplexityClassAdapter with the parent visitor and the name of the class that will be
parsed for complexity or jump instructions. |
|
Method Summary |
void |
visit(int version,
int access,
java.lang.String className,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces)
|
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
java.lang.String methodName,
java.lang.String methodDescription,
java.lang.String signature,
java.lang.String[] exceptions)
|
| Methods inherited from class org.objectweb.asm.ClassAdapter |
visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitOuterClass, visitSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexityClassAdapter
public ComplexityClassAdapter(org.objectweb.asm.ClassVisitor visitor,
java.lang.String className)
- Constructor initialises a
ComplexityClassAdapter ComplexityClassAdapter with the parent visitor and the name of the class that will be
parsed for complexity or jump instructions.
- Parameters:
visitor - the parent visitor what will be called to collect the byte codeclassName - the name of the class being parsed
visit
public void visit(int version,
int access,
java.lang.String className,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces)
-
- Specified by:
visit in interface org.objectweb.asm.ClassVisitor- Overrides:
visit in class org.objectweb.asm.ClassAdapter
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access,
java.lang.String methodName,
java.lang.String methodDescription,
java.lang.String signature,
java.lang.String[] exceptions)
-
- Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor- Overrides:
visitMethod in class org.objectweb.asm.ClassAdapter
Copyright © 2010. All Rights Reserved.