public abstract class AttributeInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
attributeNameIndex |
| Modifier | Constructor and Description |
|---|---|
protected |
AttributeInfo(ClassFile cf) |
| Modifier and Type | Method and Description |
|---|---|
ClassFile |
getClassFile() |
java.lang.String |
getName()
Returns the name of this attribute.
|
static UnsupportedAttribute |
readUnsupportedAttribute(ClassFile cf,
java.io.DataInputStream in,
java.lang.String attrName,
int attrLength)
Reads an unknown/unsupported attribute from an input stream.
|
protected AttributeInfo(ClassFile cf)
public ClassFile getClassFile()
public java.lang.String getName()
public static UnsupportedAttribute readUnsupportedAttribute(ClassFile cf, java.io.DataInputStream in, java.lang.String attrName, int attrLength) throws java.io.IOException
cf - The class file containing the attribute.in - The input stream to read from.attrName - The name of the attribute.attrLength - The length of the data to read from in,
in bytes.java.io.IOException - If an IO error occurs.