attr
Class attrFactory
java.lang.Object
|
+--attr.attrFactory
- public final class attrFactory
- extends java.lang.Object
Attribute "factory" class used to allocate attributes.
This class reads the first two entries in the attribute structure,
the attribute_name_index and the attribute_length. The factory
class uses the attribute name to select the proper attribute to
allocate. As specified in the JVM spec, unknown attributes are
skipped.
- Author:
- Ian Kaplan
Method Summary |
static attrInfo |
allocAttr(java.io.DataInputStream dStream,
constPool constPoolSec)
Read data from the class file and allocate the correct
attribute subclass. |
private static void |
skip_data(int len,
java.io.DataInputStream dStream)
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
dataIn
static dataRead dataIn
attrFactory
private attrFactory()
skip_data
private static void skip_data(int len,
java.io.DataInputStream dStream)
allocAttr
public static attrInfo allocAttr(java.io.DataInputStream dStream,
constPool constPoolSec)
- Read data from the class file and allocate the correct
attribute subclass. If there is no known attribute
corresponding to the attribute name, skip the attribute.
- Returns:
- An attrInfo object or null.