com.vladium.jcd.cls.attribute
Class GenericAttribute_info
java.lang.Object
com.vladium.jcd.cls.attribute.Attribute_info
com.vladium.jcd.cls.attribute.GenericAttribute_info
- All Implemented Interfaces:
- java.lang.Cloneable, IClassFormatOutput
- public final class GenericAttribute_info
- extends Attribute_info
This attribute structure is used during parsing to absorb all attribute types
that are not currently recognized.
- Author:
- (C) 2001, Vlad Roubtsov
- See Also:
Attribute_info
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_info
public byte[] m_info
EMPTY_BYTE_ARRAY
private static final byte[] EMPTY_BYTE_ARRAY
GenericAttribute_info
public GenericAttribute_info(int attribute_name_index,
byte[] info)
GenericAttribute_info
GenericAttribute_info(int attribute_name_index,
long attribute_length,
UDataInputStream bytes)
throws java.io.IOException
length
public long length()
- Description copied from class:
Attribute_info
- Returns the total length of this attribute when converted to
.class format [including the 6-byte header]
- Specified by:
length
in class Attribute_info
accept
public void accept(IAttributeVisitor visitor,
java.lang.Object ctx)
- Specified by:
accept
in class Attribute_info
toString
public java.lang.String toString()
- Specified by:
toString
in class Attribute_info
clone
public java.lang.Object clone()
- Performs a deep copy.
- Overrides:
clone
in class Attribute_info
writeInClassFormat
public void writeInClassFormat(UDataOutputStream out)
throws java.io.IOException
- Specified by:
writeInClassFormat
in interface IClassFormatOutput
- Overrides:
writeInClassFormat
in class Attribute_info
- Throws:
java.io.IOException