Package javassist.bytecode
Class ConstantAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.ConstantAttribute
ConstantValue_attribute.-
Field Summary
FieldsFields inherited from class javassist.bytecode.AttributeInfo
constPool, info, name -
Constructor Summary
ConstructorsConstructorDescriptionConstantAttribute(ConstPool cp, int index) Constructs a ConstantValue attribute.ConstantAttribute(ConstPool cp, int n, DataInputStream in) -
Method Summary
Modifier and TypeMethodDescriptionMakes a copy.intReturnsconstantvalue_index.Methods inherited from class javassist.bytecode.AttributeInfo
copyAll, get, getConstPool, getLength, getName, getRefClasses, getRefClasses, length, lookup, read, remove, renameClass, renameClass, renameClass, renameClass, set, write, writeAll
-
Field Details
-
tag
The name of this attribute"ConstantValue".- See Also:
-
-
Constructor Details
-
ConstantAttribute
ConstantAttribute(ConstPool cp, int n, DataInputStream in) throws IOException - Throws:
IOException
-
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.
-