Java2OWL
Class AnnotationsAttribute

Object
  extended by Attribute
      extended by 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

Field Summary
 
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)
           
 
Method Summary
 void accept(Visitor v)
           
 Attribute copy(ConstantPool cp)
           
 void dump(DataOutputStream out)
           
 Map getAnnotation(String type)
          gets a particular annotation
 Map[] getAnnotations()
          returns the annotations
 String toString()
           
 
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
 

Constructor Detail

AnnotationsAttribute

public AnnotationsAttribute(byte tag,
                            int name_index,
                            int length,
                            ConstantPool constant_pool,
                            Map[] annotations,
                            byte[] bytes)
Method Detail

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