proguard.classfile.visitor
Class ExceptionCounter

java.lang.Object
  extended by proguard.classfile.visitor.ExceptionCounter
All Implemented Interfaces:
ExceptionInfoVisitor

public class ExceptionCounter
extends java.lang.Object
implements ExceptionInfoVisitor

This ExceptionInfoVisitor counts the number of exceptions that has been visited.


Constructor Summary
ExceptionCounter()
           
 
Method Summary
 int getCount()
          Returns the number of exceptions that has been visited so far.
 void visitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionCounter

public ExceptionCounter()
Method Detail

getCount

public int getCount()
Returns the number of exceptions that has been visited so far.


visitExceptionInfo

public void visitExceptionInfo(Clazz clazz,
                               Method method,
                               CodeAttribute codeAttribute,
                               ExceptionInfo exceptionInfo)
Specified by:
visitExceptionInfo in interface ExceptionInfoVisitor