|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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 ConstantInfopublic void setTag(int tag)
ConstantInfo
setTag in interface ConstantInfotag - The unique tag (see JVM Specification for details)
public abstract void fromStream(java.io.DataInputStream dis)
throws DnaDeserializationException
fromStream in interface ConstantInfodis -
DnaDeserializationException
public abstract void toStream(java.io.DataOutputStream dos)
throws DnaSerializationException
toStream in interface ConstantInfodos -
DnaSerializationExceptionpublic void updateRefs(int offset)
updateRefs in interface ConstantInfooffset - The offset to be appliedpublic ConstantPoolTable getCpt()
ConstantPoolTable instance this
constantInfo entity belongs to.
getCpt in interface ConstantInfoConstantPoolTablepublic void setCpt(ConstantPoolTable cpt)
ConstantPoolTable instance this
constantInfo entity belongs to.
setCpt in interface ConstantInfocpt - The ConstantPoolTable
public boolean validate()
throws ConstantInfoValidationException,
ConstantInfoAttributeOutOfRangeException,
MissingDnaContainerException,
MissingCPTableException
ConstantInfo
according to what specified by the JVM Official Specification.
validate in interface ConstantInfoConstantInfoValidationException - 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 instance
protected abstract void innerValidations(ConstantPoolTable cpt)
throws ConstantInfoValidationException,
ConstantInfoAttributeOutOfRangeException
ConstantInfoValidationException
ConstantInfoAttributeOutOfRangeExceptionpublic java.lang.String getType()
ConstantInfoString identifying the CONSTANT_info data structure.
getType in interface ConstantInfoCONSTANT_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 ConstantInfoclone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||