Java2OWL
Class AnnotationsAttribute
Object
Attribute
AnnotationsAttribute
- All Implemented Interfaces:
- Serializable, Cloneable, Node
public class AnnotationsAttribute
- extends Attribute
This class represents RuntimeVisibleAnnotations for the BCEL programs.
It is adapted from an implementation by Don Schwarz.
All RuntimeVisibleAnnotations are collected in an array of maps.
Get the Original Code here.
- See Also:
- Serialized Form
Fields inherited from class Attribute |
constant_pool, length, name_index, tag |
Constructor Summary |
AnnotationsAttribute(byte tag,
int name_index,
int length,
ConstantPool constant_pool,
Map[] annotations,
byte[] bytes)
|
Methods inherited from class Attribute |
addAttributeReader, clone, getConstantPool, getLength, getNameIndex, getTag, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex |
Methods inherited from class Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationsAttribute
public AnnotationsAttribute(byte tag,
int name_index,
int length,
ConstantPool constant_pool,
Map[] annotations,
byte[] bytes)
getAnnotations
public Map[] getAnnotations()
- returns the annotations
getAnnotation
public Map getAnnotation(String type)
- gets a particular annotation
accept
public void accept(Visitor v)
- Specified by:
accept
in interface Node
- Specified by:
accept
in class Attribute
copy
public Attribute copy(ConstantPool cp)
- Specified by:
copy
in class Attribute
toString
public String toString()
- Overrides:
toString
in class Attribute
dump
public void dump(DataOutputStream out)
throws IOException
- Overrides:
dump
in class Attribute
- Throws:
IOException