FindBugs™ 1.3.9

edu.umd.cs.findbugs.asm
Class ClassNodeDetector

java.lang.Object
  extended by org.objectweb.asm.tree.MemberNode
      extended by org.objectweb.asm.tree.ClassNode
          extended by edu.umd.cs.findbugs.asm.ClassNodeDetector
All Implemented Interfaces:
Detector2, Priorities, org.objectweb.asm.ClassVisitor
Direct Known Subclasses:
TestASM

public abstract class ClassNodeDetector
extends org.objectweb.asm.tree.ClassNode
implements Detector2

Abstract base class to to reduce boilerplate needed for writing ASM-based Detectors implemented as ClassNode visitors

Author:
pugh

Field Summary
protected  BugReporter bugReporter
           
 
Fields inherited from class org.objectweb.asm.tree.ClassNode
access, fields, innerClasses, interfaces, methods, name, outerClass, outerMethod, outerMethodDesc, signature, sourceDebug, sourceFile, superName, version
 
Fields inherited from class org.objectweb.asm.tree.MemberNode
attrs, invisibleAnnotations, visibleAnnotations
 
Fields inherited from interface edu.umd.cs.findbugs.Priorities
EXP_PRIORITY, HIGH_PRIORITY, IGNORE_PRIORITY, LOW_PRIORITY, NORMAL_PRIORITY
 
Constructor Summary
ClassNodeDetector(BugReporter bugReporter)
          Construct a ClassNodeDetector.
 
Method Summary
 void finishPass()
          This method is called at the end of the analysis pass.
 java.lang.String getDetectorClassName()
          Get the name of the detector class.
 void visitClass(ClassDescriptor classDescriptor)
          Visit a class.
 
Methods inherited from class org.objectweb.asm.tree.ClassNode
accept, visit, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class org.objectweb.asm.tree.MemberNode
visitAnnotation, visitAttribute, visitEnd
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.asm.ClassVisitor
visitAnnotation, visitAttribute, visitEnd
 

Field Detail

bugReporter

protected final BugReporter bugReporter
Constructor Detail

ClassNodeDetector

public ClassNodeDetector(BugReporter bugReporter)
Construct a ClassNodeDetector. The bugReporter is passed to the constructor and stored in a protected final field.

Parameters:
bugReporter - the BugReporter that bug should be reporter to.
Method Detail

getDetectorClassName

public java.lang.String getDetectorClassName()
Description copied from interface: Detector2
Get the name of the detector class.

Specified by:
getDetectorClassName in interface Detector2
Returns:
the name of the detector class.

visitClass

public void visitClass(ClassDescriptor classDescriptor)
                throws CheckedAnalysisException
Description copied from interface: Detector2
Visit a class.

Specified by:
visitClass in interface Detector2
Parameters:
classDescriptor - descriptor naming the class to visit
Throws:
CheckedAnalysisException - if an exception occurs during analysis

finishPass

public void finishPass()
Description copied from interface: Detector2
This method is called at the end of the analysis pass.

Specified by:
finishPass in interface Detector2

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.