org.ow2.asmdex.specificAnnotationParser
Class EnclosingClassSpecificAnnotationParser

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

public class EnclosingClassSpecificAnnotationParser
extends java.lang.Object
implements ISpecificAnnotationParser

Specific annotation parser for Enclosing Classes. Recovers the name of the classes.

Author:
Julien Névo

Constructor Summary
EnclosingClassSpecificAnnotationParser(java.lang.String annotationName)
          Enclosing class annotation parser
 
Method Summary
 java.lang.String getAnnotationName()
          Returns the annotation to find.
 java.lang.String getClassName()
          Get the class name
 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

EnclosingClassSpecificAnnotationParser

public EnclosingClassSpecificAnnotationParser(java.lang.String annotationName)
Enclosing class annotation parser

Parameters:
annotationName -
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.

getClassName

public java.lang.String getClassName()
Get the class name

Returns:
the full name

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.