|
||||||||||
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
public abstract class ConstantAncestor
Abstract class, ancestor for the other concrete implementation classes.
Field Summary | |
---|---|
protected static java.lang.String |
className
|
protected ConstantPoolTable |
cpt
|
protected static Logger |
logger
|
protected int |
tag
|
protected java.lang.String |
type
|
Constructor Summary | |
---|---|
ConstantAncestor()
Creates a new instance of ConstantAncestor |
Method Summary | |
---|---|
java.lang.Object |
clone()
The clone() method will return a new instance whose reference to the
containing ConstantPoolTable instance is left unmodified. |
abstract void |
fromStream(java.io.DataInputStream dis)
This method does not perform anything. |
ConstantPoolTable |
getCpt()
Get a reference to the ConstantPoolTable instance this
constantInfo entity belongs to. |
int |
getTag()
Gets the unique tag identifing each Constant Info structure |
java.lang.String |
getType()
Return the String identifying the CONSTANT_info data structure. |
protected abstract void |
innerValidations(ConstantPoolTable cpt)
|
void |
setCpt(ConstantPoolTable cpt)
Set a reference to the ConstantPoolTable instance this
constantInfo entity belongs to. |
void |
setTag(int tag)
Sets the unique tag identifing each Constant Info structure |
abstract void |
toStream(java.io.DataOutputStream dos)
This method does not perform anything. |
void |
updateRefs(int offset)
This method does not perform anything. |
boolean |
validate()
This method has to perform a validation process over the ConstantInfo
according to what specified by the JVM Official Specification. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String className
protected static Logger logger
protected int tag
protected ConstantPoolTable cpt
protected java.lang.String type
Constructor Detail |
---|
public ConstantAncestor()
Method Detail |
---|
public int getTag()
ConstantInfo
getTag
in interface ConstantInfo
public void setTag(int tag)
ConstantInfo
setTag
in interface ConstantInfo
tag
- The unique tag (see JVM Specification for details)public abstract void fromStream(java.io.DataInputStream dis) throws DnaDeserializationException
fromStream
in interface ConstantInfo
dis
-
DnaDeserializationException
public abstract void toStream(java.io.DataOutputStream dos) throws DnaSerializationException
toStream
in interface ConstantInfo
dos
-
DnaSerializationException
public void updateRefs(int offset)
updateRefs
in interface ConstantInfo
offset
- The offset to be appliedpublic ConstantPoolTable getCpt()
ConstantPoolTable
instance this
constantInfo
entity belongs to.
getCpt
in interface ConstantInfo
ConstantPoolTable
public void setCpt(ConstantPoolTable cpt)
ConstantPoolTable
instance this
constantInfo
entity belongs to.
setCpt
in interface ConstantInfo
cpt
- The ConstantPoolTable
public boolean validate() throws ConstantInfoValidationException, ConstantInfoAttributeOutOfRangeException, MissingDnaContainerException, MissingCPTableException
ConstantInfo
according to what specified by the JVM Official Specification.
validate
in interface ConstantInfo
ConstantInfoValidationException
- Something failed with the validation process; further information are stored
within the raised exception
ConstantInfoAttributeOutOfRangeException
- This exception is thrown when a ConstantInfo
contains a reference
to an invalid Constant Pool Table entry
MissingDnaContainerException
- The validation process cannot be accomplished since any of the examined entities
is missing its own Dna
container
MissingCPTableException
- The validation process cannot be accomplished since there is no reference to the
ConstantPoolTable
in the current Dna
instanceprotected abstract void innerValidations(ConstantPoolTable cpt) throws ConstantInfoValidationException, ConstantInfoAttributeOutOfRangeException
ConstantInfoValidationException
ConstantInfoAttributeOutOfRangeException
public java.lang.String getType()
ConstantInfo
String
identifying the CONSTANT_info
data structure.
getType
in interface ConstantInfo
CONSTANT_info
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone()
method will return a new instance whose reference to the
containing ConstantPoolTable
instance is left unmodified.
clone
in interface ConstantInfo
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |