org.ow2.asmdex.specificAnnotationParser
Class ExceptionSpecificAnnotationParser

java.lang.Object
  extended by org.ow2.asmdex.specificAnnotationParser.ExceptionSpecificAnnotationParser
All Implemented Interfaces:
ISpecificAnnotationParser

public class ExceptionSpecificAnnotationParser
extends java.lang.Object
implements ISpecificAnnotationParser

Specific annotation parser for Exceptions. Recovers the internal name of the exceptions.

Author:
Julien Névo

Constructor Summary
ExceptionSpecificAnnotationParser(java.lang.String annotationName)
          Constructor
 
Method Summary
 java.lang.String getAnnotationName()
          Returns the annotation to find.
 java.util.List<java.lang.String> getExceptions()
          List of exceptions that may be raised
 void treat(DexFileReader dexFile, ApplicationReader applicationReader, AnnotationVisitor annotationVisitor)
          Behavior to perform when the desired annotation is found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionSpecificAnnotationParser

public ExceptionSpecificAnnotationParser(java.lang.String annotationName)
Constructor

Parameters:
annotationName - name of annotation
Method Detail

getAnnotationName

public java.lang.String getAnnotationName()
Description copied from interface: ISpecificAnnotationParser
Returns the annotation to find.

Specified by:
getAnnotationName in interface ISpecificAnnotationParser
Returns:
the annotation to find.

getExceptions

public java.util.List<java.lang.String> getExceptions()
List of exceptions that may be raised

Returns:
list of exception names

treat

public void treat(DexFileReader dexFile,
                  ApplicationReader applicationReader,
                  AnnotationVisitor annotationVisitor)
Description copied from interface: ISpecificAnnotationParser
Behavior to perform when the desired annotation is found.

Specified by:
treat in interface ISpecificAnnotationParser
Parameters:
dexFile - the Dex file.
applicationReader - application reader.
annotationVisitor - visitor that visits the annotation and recovers the information it needs.