attr
Class attrInfo

java.lang.Object
  |
  +--util.dataRead
        |
        +--attr.attrInfo
Direct Known Subclasses:
codeAttr, constValueAttr, deprecAttr, exceptAttr, innerClassAttr, lineNumTabAttr, localVarTabAttr, srcFileAttr, synthAttr

public class attrInfo
extends dataRead

Base class for attributes (Section 4.7, JVM Specification). All other attributes are derived from this class. The attributes in (Java 1.2) are:

All attributes have a CONSTANT_Utf8_info entry and a length. There may be attributes which are unknown. The data in these attributes (length bytes following the length field) is skipped.

The structure of the base class is:

attrInfo {
u2 attr_name_index;
u4 length;
}

Author:
Ian Kaplan

Field Summary
(package private)  java.lang.String attrName
           
(package private)  int len
           
 
Fields inherited from class util.dataRead
bytesRead
 
Constructor Summary
(package private) attrInfo(java.lang.String name, int length)
           
 
Method Summary
 java.lang.String getName()
           
 void pr()
           
 
Methods inherited from class util.dataRead
getBytesRead, readU1, readU2, readU4
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

attrName

java.lang.String attrName

len

int len
Constructor Detail

attrInfo

attrInfo(java.lang.String name,
         int length)
Method Detail

getName

public java.lang.String getName()

pr

public void pr()