com.sun.tools.classfile
Class Attributes

java.lang.Object
  extended by com.sun.tools.classfile.Attributes
All Implemented Interfaces:
java.lang.Iterable<Attribute>

public class Attributes
extends java.lang.Object
implements java.lang.Iterable<Attribute>


Field Summary
 Attribute[] attrs
           
 java.util.Map<java.lang.String,Attribute> map
           
 
Constructor Summary
Attributes(ClassReader cr)
           
Attributes(ConstantPool constant_pool, Attribute[] attrs)
           
 
Method Summary
 Attribute get(int index)
           
 Attribute get(java.lang.String name)
           
 int getIndex(ConstantPool constant_pool, java.lang.String name)
           
 java.util.Iterator<Attribute> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attrs

public final Attribute[] attrs

map

public final java.util.Map<java.lang.String,Attribute> map
Constructor Detail

Attributes

Attributes(ClassReader cr)
     throws java.io.IOException
Throws:
java.io.IOException

Attributes

public Attributes(ConstantPool constant_pool,
                  Attribute[] attrs)
Method Detail

iterator

public java.util.Iterator<Attribute> iterator()
Specified by:
iterator in interface java.lang.Iterable<Attribute>

get

public Attribute get(int index)

get

public Attribute get(java.lang.String name)

getIndex

public int getIndex(ConstantPool constant_pool,
                    java.lang.String name)

size

public int size()