|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.PooledConstant
org.multijava.util.classfile.UnresolvedConstant
Wrap an Unresolved constant reference with this CPE.
| Field Summary | |
private int |
index1
|
private int |
index2
|
private byte |
tag
|
| Fields inherited from class org.multijava.util.classfile.PooledConstant |
|
| Constructor Summary | |
UnresolvedConstant(byte tag,
int index1,
int index2)
Constructs a new unresolved pooled constant. |
|
| Method Summary | |
boolean |
equals(Object o)
equals (an exact comparison) ASSERT: this.hashCode == o.hashCode ===> cast |
(package private) Object |
getLiteral()
|
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,
DataOutput out)
Write this class into the the file (out) getting data position from the constant pool |
| Methods inherited from class org.multijava.util.classfile.PooledConstant |
getIndex, getSlotsUsed, setIndex, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private byte tag
private int index1
private int index2
| Constructor Detail |
public UnresolvedConstant(byte tag,
int index1,
int index2)
tag - the constant typeindex1 - the first indexindex2 - the second index| Method Detail |
PooledConstant resolveConstant(PooledConstant[] constants)
throws ClassFileFormatException
constants - the constant pool for this class
ClassFileFormatException - attempt to
write a bad classfile infoObject getLiteral()
PooledConstant
public final int hashCode()
hashCode in class PooledConstantpublic final boolean equals(Object o)
equals in class PooledConstantfinal void resolveConstants(PooledConstant pc)
pc - the already in pooled constant
ASSERT pc.getClass() == this.getClass()void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
void write(ConstantPool cp,
DataOutput out)
cp - the constant pool that contain all dataout - the file where to write this object info
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||