com.sun.tools.classfile
Class Annotation

java.lang.Object
  extended by com.sun.tools.classfile.Annotation

public class Annotation
extends java.lang.Object

See JVMS3, section 4.8.16.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Nested Class Summary
static class Annotation.Annotation_element_value
           
static class Annotation.Array_element_value
           
static class Annotation.Class_element_value
           
static class Annotation.element_value
          See JVMS3, section 4.8.16.1.
static class Annotation.element_value_pair
           
static class Annotation.Enum_element_value
           
(package private) static class Annotation.InvalidAnnotation
           
static class Annotation.Primitive_element_value
           
 
Field Summary
 Annotation.element_value_pair[] element_value_pairs
           
 int num_element_value_pairs
           
 int type_index
           
 
Constructor Summary
Annotation(ClassReader cr)
           
Annotation(ConstantPool constant_pool, int type_index, Annotation.element_value_pair[] element_value_pairs)
           
 
Method Summary
 int length()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type_index

public final int type_index

num_element_value_pairs

public final int num_element_value_pairs

element_value_pairs

public final Annotation.element_value_pair[] element_value_pairs
Constructor Detail

Annotation

Annotation(ClassReader cr)
     throws java.io.IOException,
            Annotation.InvalidAnnotation
Throws:
java.io.IOException
Annotation.InvalidAnnotation

Annotation

public Annotation(ConstantPool constant_pool,
                  int type_index,
                  Annotation.element_value_pair[] element_value_pairs)
Method Detail

length

public int length()