Package javassist.bytecode
Class ConstantAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.ConstantAttribute
ConstantValue_attribute.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstantAttribute(ConstPool cp, int index) Constructs a ConstantValue attribute. -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.intReturnsconstantvalue_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_indexofConstantValue_attribute.
-
-
Method Details
-
getConstantValue
public int getConstantValue()Returnsconstantvalue_index. -
copy
Makes a copy. Class names are replaced according to the givenMapobject.- Overrides:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- pairs of replaced and substituted class names.
-