|
||||||||||
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.ConstantField
public class ConstantField
Field Summary | |
---|---|
protected int |
classIndex
|
protected static java.lang.String |
className
|
protected static Logger |
logger
|
protected int |
nameAndTypeIndex
|
protected java.lang.String |
type
|
Fields inherited from class jef.dna.constantInfo.impl.ConstantAncestor |
---|
cpt, tag |
Constructor Summary | |
---|---|
ConstantField()
|
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 |
getClassIndex()
The value of the class_index item must be a valid index into the constant_pool table. |
int |
getNameAndTypeIndex()
The value of the name_and_type_index item must be a valid index into the constant_pool table. |
protected void |
innerValidations(ConstantPoolTable cpt)
|
void |
setClassIndex(int index)
The value of the class_index item must be a valid index into the constant_pool table. |
void |
setNameAndTypeIndex(int index)
The value of the name_and_type_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. |
protected void |
validateClassIndex(ConstantPoolTable cpt)
|
protected void |
validateNameAndTypeIndex(ConstantPoolTable cpt)
|
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 |
---|
@RefersToCpInfo protected int classIndex
@RefersToCpInfo protected int nameAndTypeIndex
protected java.lang.String type
protected static java.lang.String className
protected static Logger logger
Constructor Detail |
---|
public ConstantField()
Method Detail |
---|
public int getClassIndex()
ConstField
getClassIndex
in interface ConstField
public void setClassIndex(int index)
ConstField
setClassIndex
in interface ConstField
index
- The CONSTANT_Class_info index into the constant pool tablepublic int getNameAndTypeIndex()
ConstField
getNameAndTypeIndex
in interface ConstField
public void setNameAndTypeIndex(int index)
ConstField
setNameAndTypeIndex
in interface ConstField
index
- The CONSTANT_NameAndType_info index into the constant pool tablepublic 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
protected void validateClassIndex(ConstantPoolTable cpt) throws ConstantInfoValidationException, ConstantInfoAttributeOutOfRangeException
ConstantInfoValidationException
ConstantInfoAttributeOutOfRangeException
protected void validateNameAndTypeIndex(ConstantPoolTable cpt) throws ConstantInfoValidationException, ConstantInfoAttributeOutOfRangeException
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 |