soot.tagkit
Class AnnotationTag

java.lang.Object
  extended by soot.tagkit.AnnotationTag
All Implemented Interfaces:
Tag

public class AnnotationTag
extends Object
implements Tag

Represents the annotation attribute attatched to a class, method, field, method param - they could have many annotations each for Java 1.5.


Constructor Summary
AnnotationTag(String type, int numElems)
           
 
Method Summary
 void addElem(AnnotationElem elem)
           
 AnnotationElem getElemAt(int i)
           
 String getInfo()
           
 String getName()
          Returns the tag name.
 int getNumElems()
           
 String getType()
           
 byte[] getValue()
          Returns the tag raw data.
 void setElems(ArrayList<AnnotationElem> list)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationTag

public AnnotationTag(String type,
                     int numElems)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Returns the tag name.

Specified by:
getName in interface Tag

getInfo

public String getInfo()

getType

public String getType()

getNumElems

public int getNumElems()

getValue

public byte[] getValue()
Returns the tag raw data.

Specified by:
getValue in interface Tag

addElem

public void addElem(AnnotationElem elem)

setElems

public void setElems(ArrayList<AnnotationElem> list)

getElemAt

public AnnotationElem getElemAt(int i)