javassist.bytecode
public class ConstantAttribute extends AttributeInfo
ConstantValue_attribute
.
Field Summary | |
---|---|
static String | tag
The name of this attribute "ConstantValue" . |
Constructor Summary | |
---|---|
ConstantAttribute(ConstPool cp, int index)
Constructs a ConstantValue attribute.
|
Method Summary | |
---|---|
AttributeInfo | copy(ConstPool newCp, Map classnames)
Makes a copy. |
int | getConstantValue()
Returns constantvalue_index . |
"ConstantValue"
.Parameters: cp a constant pool table. index constantvalue_index
of ConstantValue_attribute
.
Map
object.
Parameters: newCp the constant pool table used by the new copy. classnames pairs of replaced and substituted class names.
constantvalue_index
.