com.vladium.jcd.cls.attribute
Class InnerClassesAttribute_info
java.lang.Object
com.vladium.jcd.cls.attribute.Attribute_info
com.vladium.jcd.cls.attribute.InnerClassesAttribute_info
- All Implemented Interfaces:
- IClassFormatOutput, java.lang.Cloneable
public final class InnerClassesAttribute_info
- extends Attribute_info
- Author:
- Vlad Roubtsov, (C) 2003
Field Summary |
private java.util.List |
m_classes
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_classes
private java.util.List m_classes
InnerClassesAttribute_info
InnerClassesAttribute_info(int attribute_name_index,
long attribute_length,
UDataInputStream bytes)
throws java.io.IOException
- Throws:
java.io.IOException
makesClassNested
public boolean makesClassNested(int class_index,
int[] nestedAccessFlags)
get
public final InnerClass_info get(int offset)
- Returns
InnerClass_info
descriptor at a given offset.
- Parameters:
offset
- inner class entry offset [must be in [0, size()) range;
input not checked]
- Returns:
- InnerClass_info descriptor [never null]
- Throws:
java.lang.IndexOutOfBoundsException
- if 'offset' is outside of valid range
size
public final int size()
- Returns the number of descriptors in this collection [can be 0].
length
public final 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