Package soot.tagkit
Class AnnotationTag
- java.lang.Object
-
- soot.tagkit.AnnotationTag
-
-
Constructor Summary
Constructors Constructor Description AnnotationTag(String type)AnnotationTag(String type, int numElem)Deprecated.AnnotationTag(String type, Collection<AnnotationElem> elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElem(AnnotationElem elem)Adds one element to the listbooleanequals(Object obj)Collection<AnnotationElem>getElems()StringgetInfo()StringgetName()Returns the tag name.StringgetType()byte[]getValue()Returns the tag raw data.inthashCode()voidsetElems(List<AnnotationElem> list)Overwrites the elements stored previouslyStringtoString()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnnotationTag
public AnnotationTag(String type)
-
AnnotationTag
public AnnotationTag(String type, Collection<AnnotationElem> elements)
-
AnnotationTag
@Deprecated public AnnotationTag(String type, int numElem)
Deprecated.
-
-
Method Detail
-
getInfo
public String getInfo()
-
getType
public String getType()
-
getValue
public byte[] getValue()
Description copied from interface:TagReturns the tag raw data.
-
addElem
public void addElem(AnnotationElem elem)
Adds one element to the list- Parameters:
elem- the element
-
setElems
public void setElems(List<AnnotationElem> list)
Overwrites the elements stored previously- Parameters:
list- the new list of elements
-
getElems
public Collection<AnnotationElem> getElems()
- Returns:
- an immutable collection of the elements
-
-