|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjef.dna.attributes.impl.InnerClassesTableEntry
public class InnerClassesTableEntry
Class representing an Inner Classes instance's table entry.
Field Summary | |
---|---|
protected static Logger |
logger
|
Constructor Summary | |
---|---|
InnerClassesTableEntry()
Creates a new instance of InnerClassesTableEntry |
Method Summary | |
---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing InnerClassesAttribute is not modified. |
void |
fromStream(java.io.DataInputStream dis)
Populates the current InnerClassesTableEntry instance with the given
DataInputStream . |
InnerClassesAttribute |
getAttributeContainer()
Get the attribute containing the InnerClassesTableEntry |
int |
getBytesCount()
This method must return the overall number of bytes required by the component implementing this interface. |
int |
getInnerClassAccessFlags()
Returns the access flags set via the setInnerClassAccessFlags method. |
int |
getInnerClassInfoIndex()
The value of the inner_class_info_index item must be zero or a valid index into the constant_pool table. |
int |
getInnerNameIndex()
If the inner class is anonymous, the value of the inner_name_index item must be zero. |
int |
getOuterClassInfoIndex()
If the inner class is not a member, the value of the outer_class_info_index item must be zero. |
void |
setAttributeContainer(InnerClassesAttribute attr)
Set the attribute containing the InnerClassesTableEntry |
void |
setInnerClassAccesFlags(int accessFlags)
The value of the inner_class_access_flags item is a mask of flags used to denote access permissions to and properties of class or interface as declared in the source code from which this class file was compiled. |
void |
setInnerClassInfoIndex(int innClassInfoIndex)
The value of the inner_class_info_index item must be zero or a valid index into the constant_pool table. |
void |
setInnerNameIndex(int innNameIndex)
If the inner class is anonymous, the value of the inner_name_index item must be zero. |
void |
setOuterClassInfoIndex(int outClassInfoIndex)
If the inner class is not a member, the value of the outer_class_info_index item must be zero. |
void |
toStream(java.io.DataOutputStream dos)
Serializes the current InnerClassesTableEntry to the given
DataOutputStream . |
void |
updateRefs(int offset)
Updates all the references to constant pool table entries by the given offset. |
void |
validate()
Perform validation over the InnerClassesTableEntry |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger logger
Constructor Detail |
---|
public InnerClassesTableEntry()
Method Detail |
---|
public void setInnerClassInfoIndex(int innClassInfoIndex)
InnerClassesTableEntry
setInnerClassInfoIndex
in interface InnerClassesTableEntry
innClassInfoIndex
- A valid index into the constant pool tablepublic int getInnerClassInfoIndex()
InnerClassesTableEntry
getInnerClassInfoIndex
in interface InnerClassesTableEntry
public void setOuterClassInfoIndex(int outClassInfoIndex)
InnerClassesTableEntry
setOuterClassInfoIndex
in interface InnerClassesTableEntry
outClassInfoIndex
- A valid index into the constant pool tablepublic int getOuterClassInfoIndex()
InnerClassesTableEntry
getOuterClassInfoIndex
in interface InnerClassesTableEntry
public void setInnerNameIndex(int innNameIndex)
InnerClassesTableEntry
setInnerNameIndex
in interface InnerClassesTableEntry
innNameIndex
- A valid index into the constant pool tablepublic int getInnerNameIndex()
InnerClassesTableEntry
getInnerNameIndex
in interface InnerClassesTableEntry
public void setInnerClassAccesFlags(int accessFlags)
InnerClassesTableEntry
setInnerClassAccesFlags
in interface InnerClassesTableEntry
accessFlags
- A bit mask denoting the which access modifiers are applied to the given classpublic int getInnerClassAccessFlags()
InnerClassesTableEntry
setInnerClassAccessFlags
method.
getInnerClassAccessFlags
in interface InnerClassesTableEntry
public void setAttributeContainer(InnerClassesAttribute attr)
InnerClassesTableEntry
InnerClassesTableEntry
setAttributeContainer
in interface InnerClassesTableEntry
attr
- The instance containing the current InnerClassesTableEntry
public InnerClassesAttribute getAttributeContainer()
InnerClassesTableEntry
InnerClassesTableEntry
getAttributeContainer
in interface InnerClassesTableEntry
InnerClassesTableEntry
public void toStream(java.io.DataOutputStream dos) throws java.io.IOException
InnerClassesTableEntry
InnerClassesTableEntry
to the given
DataOutputStream
.
toStream
in interface InnerClassesTableEntry
dos
- The stream over which the current instance has to be serialized
java.io.IOException
- Something went wrong with the provided output streampublic void fromStream(java.io.DataInputStream dis) throws java.io.IOException
InnerClassesTableEntry
InnerClassesTableEntry
instance with the given
DataInputStream
.
fromStream
in interface InnerClassesTableEntry
dis
- The stream from which the current instance has to be populated
java.io.IOException
- Something went wrong with the provided input streampublic void updateRefs(int offset)
InnerClassesTableEntry
updateRefs
in interface InnerClassesTableEntry
offset
- The offset to be usedpublic void validate() throws MissingAttributeContainerException, MissingDnaContainerException, MissingCPTableException, InnerClassesTableEntryValidationException
InnerClassesTableEntry
InnerClassesTableEntry
validate
in interface InnerClassesTableEntry
MissingAttributeContainerException
MissingDnaContainerException
InnerClassesTableEntryValidationException
MissingCPTableException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone()
method will return a new instance whose reference to the
containing InnerClassesAttribute
is not modified.
clone
in interface InnerClassesTableEntry
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int getBytesCount()
BytesCountable
getBytesCount
in interface BytesCountable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |