public class ConstantAttribute extends AttributeInfo
ConstantValue_attribute
.Modifier and Type | Field | Description |
---|---|---|
static String |
tag |
The name of this attribute
"ConstantValue" . |
constPool
Constructor | Description |
---|---|
ConstantAttribute(ConstPool cp,
int index) |
Constructs a ConstantValue attribute.
|
Modifier and Type | Method | Description |
---|---|---|
AttributeInfo |
copy(ConstPool newCp,
Map<String,String> classnames) |
Makes a copy.
|
int |
getConstantValue() |
Returns
constantvalue_index . |
get, getConstPool, getName, length, set
public static final String tag
"ConstantValue"
.public ConstantAttribute(ConstPool cp, int index)
cp
- a constant pool table.index
- constantvalue_index
of ConstantValue_attribute
.public int getConstantValue()
constantvalue_index
.public AttributeInfo copy(ConstPool newCp, Map<String,String> classnames)
Map
object.copy
in class AttributeInfo
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted
class names.Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.