Class AttributeInfo
java.lang.Object
org.fife.rsta.ac.java.classreader.attributes.AttributeInfo
- Direct Known Subclasses:
Code, ConstantValue, Exceptions, Signature, SourceFile, UnsupportedAttribute
Represents an "attribute_info" structure in a class file.
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this attribute.static UnsupportedAttributereadUnsupportedAttribute(ClassFile cf, DataInputStream in, String attrName, int attrLength) Reads an unknown/unsupported attribute from an input stream.
-
Field Details
-
cf
-
attributeNameIndex
private int attributeNameIndex
-
-
Constructor Details
-
AttributeInfo
-
-
Method Details
-
getClassFile
-
getName
-
readUnsupportedAttribute
public static UnsupportedAttribute readUnsupportedAttribute(ClassFile cf, DataInputStream in, String attrName, int attrLength) throws IOException Reads an unknown/unsupported attribute from an input stream.- Parameters:
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 fromin, in bytes.- Returns:
- The attribute.
- Throws:
IOException- If an IO error occurs.
-