org.ow2.asmdex.specificAnnotationParser
Class InnerClassSpecificAnnotationParser

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

public class InnerClassSpecificAnnotationParser
extends java.lang.Object
implements ISpecificAnnotationParser

Specific annotation parser for Inner Classes. Recovers the access flag and the simple name of the inner class.

Author:
Julien Névo

Constructor Summary
InnerClassSpecificAnnotationParser(java.lang.String annotationName)
          Parser for an annotation specifying an inner class
 
Method Summary
 int getAccessFlagsInnerClass()
          Access flags for inner class
 java.lang.String getAnnotationName()
          Returns the annotation to find.
 java.lang.String getSimpleNameInnerClass()
          Simple name of the inner class
 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

InnerClassSpecificAnnotationParser

public InnerClassSpecificAnnotationParser(java.lang.String annotationName)
Parser for an annotation specifying an inner class

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.

getSimpleNameInnerClass

public java.lang.String getSimpleNameInnerClass()
Simple name of the inner class

Returns:
string

getAccessFlagsInnerClass

public int getAccessFlagsInnerClass()
Access flags for inner class

Returns:
or of flags

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.