Methods Summary |
---|
public boolean | equals(java.lang.Object o)
if (o instanceof SingleValueConstant) {
SingleValueConstant s = (SingleValueConstant) o;
return tag == s.tag && value == s.value;
} else {
return false;
}
|
public int | hashCode()
return tag + value;
|
public boolean | isResolved() return true;
|
public static ConstantObject | read(int t, java.io.DataInput i)
return new SingleValueConstant( t, i.readInt() );
|
public java.lang.String | toString()
return (tag==Const.CONSTANT_FLOAT)? ("Float: "+Float.intBitsToFloat(value) ):
("Int: "+Integer.toHexString( value ));
|
public void | write(java.io.DataOutput o)
o.writeByte( tag );
o.writeInt( value );
|