org.ow2.asmdex.util
Class AsmDexifierFieldVisitor

java.lang.Object
  extended by org.ow2.asmdex.FieldVisitor
      extended by org.ow2.asmdex.util.AsmDexifierFieldVisitor

public class AsmDexifierFieldVisitor
extends FieldVisitor

A FieldVisitor that prints the AsmDex code that generates the Fields it visits.

Author:
Julien Névo, based on the ASM Framework.

Field Summary
 
Fields inherited from class org.ow2.asmdex.FieldVisitor
api, fv
 
Constructor Summary
AsmDexifierFieldVisitor(int api, int nbTabulations)
          Constructs a new AsmDexifierFieldVisitor object.
 
Method Summary
 TextComponent getTextComponent()
          Returns the Text Component this element holds.
 AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
          Visits an annotation of the field.
 void visitAttribute(java.lang.Object attr)
          Visits a non standard attribute of the field.
 void visitEnd()
          Visits the end of the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsmDexifierFieldVisitor

public AsmDexifierFieldVisitor(int api,
                               int nbTabulations)
Constructs a new AsmDexifierFieldVisitor object.

Parameters:
api - API level
nbTabulations - number of spaces
Method Detail

visitAnnotation

public AnnotationVisitor visitAnnotation(java.lang.String desc,
                                         boolean visible)
Description copied from class: FieldVisitor
Visits an annotation of the field.

Overrides:
visitAnnotation in class FieldVisitor
Parameters:
desc - the class descriptor of the annotation class.
visible - true if the annotation is visible at runtime.
Returns:
a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.

visitAttribute

public void visitAttribute(java.lang.Object attr)
Description copied from class: FieldVisitor
Visits a non standard attribute of the field. This method is ignored by AsmDex, and is only here for compatibility with ASM, as Attributes are not supported by AsmDex.

Overrides:
visitAttribute in class FieldVisitor
Parameters:
attr - an attribute.

visitEnd

public void visitEnd()
Description copied from class: FieldVisitor
Visits the end of the field. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the field have been visited.

Overrides:
visitEnd in class FieldVisitor

getTextComponent

public TextComponent getTextComponent()
Returns the Text Component this element holds.

Returns:
the Text Component this element holds.