scale.jcr
Class AttributeInfo

java.lang.Object
  extended by scale.jcr.AttributeInfo
Direct Known Subclasses:
CodeAttribute, ConstantValueAttribute, ExceptionsAttribute, LineNumberTableAttribute, LocalVariableTableAttribute, OtherAttribute, SourceFileAttribute

public abstract class AttributeInfo
extends java.lang.Object

This class is used to both represent a Java class file AttributeInfo structure and to read that class file AttributeInfo structure.

$Id: AttributeInfo.java,v 1.10 2007-10-04 19:58:14 burrill Exp $

Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Constructor Summary
AttributeInfo(int nameIndex)
           
 
Method Summary
 int getNameIndex()
          Return the index of the name of the attribute in the constant pool.
static AttributeInfo read(ClassFile cf, java.io.DataInputStream reader)
          Read in the AttributeInfo structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeInfo

public AttributeInfo(int nameIndex)
Method Detail

getNameIndex

public int getNameIndex()
Return the index of the name of the attribute in the constant pool.


read

public static AttributeInfo read(ClassFile cf,
                                 java.io.DataInputStream reader)
                          throws java.io.IOException
Read in the AttributeInfo structure.

Throws:
java.io.IOException