|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.PooledConstant | +--at.dms.classfile.UnresolvedConstant
Wrap an Unresolved constant reference with this CPE.
Constructor Summary | |
UnresolvedConstant(byte tag,
int index1,
int index2)
Constructs a new unresolved pooled constant. |
Method Summary | |
boolean |
equals(java.lang.Object o)
equals (an exact comparison) ASSERT: this.hashCode == o.hashCode ===> cast |
(package private) java.lang.Object |
getLiteral()
Returns the associated literal |
int |
hashCode()
hashCode (a fast comparison) CONVENTION: return XXXXXXXXXXXX << 4 + Y with Y = ident of the type of the pooled constant |
(package private) PooledConstant |
resolveConstant(PooledConstant[] constants)
Insert or check location of constant value on constant pool |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool |
(package private) void |
resolveConstants(PooledConstant pc)
Check location of constant value on constant pool |
(package private) void |
write(ConstantPool cp,
java.io.DataOutput out)
Write this class into the the file (out) getting data position from the constant pool |
Methods inherited from class at.dms.classfile.PooledConstant |
getIndex, getSlotsUsed, setIndex |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public UnresolvedConstant(byte tag, int index1, int index2)
tag
- The constant type.index1
- The first index.index2
- The second index.Method Detail |
PooledConstant resolveConstant(PooledConstant[] constants) throws ClassFileFormatException
cp
- The constant pool for this class.ClassFileFormatException
- Attempt to write a bad classfile info.java.lang.Object getLiteral()
PooledConstant
getLiteral
in class PooledConstant
public final int hashCode()
hashCode
in class PooledConstant
public final boolean equals(java.lang.Object o)
equals
in class PooledConstant
final void resolveConstants(PooledConstant pc)
resolveConstants
in class PooledConstant
pc
- the already in pooled constant
ASSERT pc.getClass() == this.getClass()void resolveConstants(ConstantPool cp)
resolveConstants
in class PooledConstant
cp
- the constant pool for this classvoid write(ConstantPool cp, java.io.DataOutput out)
write
in class PooledConstant
cp
- the constant pool that contain all dataout
- the file where to write this object info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |