|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjef.dna.constantInfo.impl.ConstantAncestor
jef.dna.constantInfo.impl.ConstantNameAndType
public class ConstantNameAndType
Field Summary | |
---|---|
protected static java.lang.String |
className
|
protected static Logger |
logger
|
protected java.lang.String |
type
|
Fields inherited from class jef.dna.constantInfo.impl.ConstantAncestor |
---|
cpt, tag |
Constructor Summary | |
---|---|
ConstantNameAndType()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing ConstantPoolTable instance is set to null . |
void |
fromStream(java.io.DataInputStream dis)
This method does not perform anything. |
int |
getDescriptorIndex()
The value of the descriptor_index item must be a valid index into the constant_pool table. |
int |
getNameIndex()
The value of the name_index item must be a valid index into the constant_pool table. |
protected void |
innerValidations(ConstantPoolTable cpt)
|
void |
setDescriptorIndex(int index)
The value of the descriptor_index item must be a valid index into the constant_pool table. |
void |
setNameIndex(int index)
The value of the name_index item must be a valid index into the constant_pool table. |
void |
toStream(java.io.DataOutputStream dos)
This method does not perform anything. |
void |
updateRefs(int offset)
This method does not perform anything. |
Methods inherited from class jef.dna.constantInfo.impl.ConstantAncestor |
---|
getCpt, getTag, getType, setCpt, setTag, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jef.dna.constantInfo.ConstantInfo |
---|
getCpt, getTag, getType, setCpt, setTag, validate |
Field Detail |
---|
protected java.lang.String type
protected static java.lang.String className
protected static Logger logger
Constructor Detail |
---|
public ConstantNameAndType()
Method Detail |
---|
public int getNameIndex()
ConstNameAndType
getNameIndex
in interface ConstNameAndType
public void setNameIndex(int index)
ConstNameAndType
setNameIndex
in interface ConstNameAndType
index
- The index of the CONSTANT_Utf8_info structurepublic int getDescriptorIndex()
ConstNameAndType
getDescriptorIndex
in interface ConstNameAndType
public void setDescriptorIndex(int index)
ConstNameAndType
setDescriptorIndex
in interface ConstNameAndType
index
- The index of the CONSTANT_Utf8_info structurepublic void toStream(java.io.DataOutputStream dos) throws DnaSerializationException
ConstantAncestor
toStream
in interface ConstantInfo
toStream
in class ConstantAncestor
dos
- The DataOutputStream
to write the object to
DnaSerializationException
public void fromStream(java.io.DataInputStream dis) throws DnaDeserializationException
ConstantAncestor
fromStream
in interface ConstantInfo
fromStream
in class ConstantAncestor
dis
- The DataInputStream
for reading the Constant Info fields
DnaDeserializationException
public void updateRefs(int offset)
ConstantAncestor
updateRefs
in interface ConstantInfo
updateRefs
in class ConstantAncestor
offset
- The offset to be appliedprotected void innerValidations(ConstantPoolTable cpt) throws ConstantInfoValidationException, ConstantInfoAttributeOutOfRangeException
innerValidations
in class ConstantAncestor
ConstantInfoValidationException
ConstantInfoAttributeOutOfRangeException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone()
method will return a new instance whose reference to the
containing ConstantPoolTable
instance is set to null
. It is up
to you appropriately setting it to the correct value.
clone
in interface ConstantInfo
clone
in class ConstantAncestor
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |