Package javassist.bytecode
Class ConstantAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.ConstantAttribute
ConstantValue_attribute
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstantAttribute
(ConstPool cp, int index) Constructs a ConstantValue attribute. -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.int
Returnsconstantvalue_index
.Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
Field Details
-
tag
The name of this attribute"ConstantValue"
.- See Also:
-
-
Constructor Details
-
ConstantAttribute
Constructs a ConstantValue attribute.- Parameters:
cp
- a constant pool table.index
-constantvalue_index
ofConstantValue_attribute
.
-
-
Method Details
-
getConstantValue
public int getConstantValue()Returnsconstantvalue_index
. -
copy
Makes a copy. Class names are replaced according to the givenMap
object.- Overrides:
copy
in classAttributeInfo
- Parameters:
newCp
- the constant pool table used by the new copy.classnames
- pairs of replaced and substituted class names.
-