ConstantValueAttributepublic class ConstantValueAttribute extends Attribute
Fields Summary |
---|
public ConstantObject | data |
Methods Summary |
---|
public void | countConstantReferences(boolean isRelocatable)
super.countConstantReferences( isRelocatable );
data.incReference();
| public void | externalize(ConstantPool p)
super.externalize( p );
data = p.dup( data );
| public static Attribute | finishReadAttribute(java.io.DataInput i, UnicodeConstant name, ConstantObject[] globals)
int l;
int n;
ConstantObject d;
l = i.readInt();
n = i.readUnsignedShort();
d = globals[n];
return new ConstantValueAttribute( name, l, d );
| public static Attribute | readAttribute(java.io.DataInput i, ConstantObject[] globals)
UnicodeConstant name;
name = (UnicodeConstant)globals[i.readUnsignedShort()];
return finishReadAttribute( i, name, globals );
| protected int | writeData(java.io.DataOutput o)
o.writeShort( data.index );
return 2;
|
|