Package javassist.bytecode
Class ConstantAttribute
- java.lang.Object
-
- javassist.bytecode.AttributeInfo
-
- javassist.bytecode.ConstantAttribute
-
public class ConstantAttribute extends AttributeInfo
ConstantValue_attribute.
-
-
Constructor Summary
Constructors Constructor Description ConstantAttribute(ConstPool cp, int index)Constructs a ConstantValue attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeInfocopy(ConstPool newCp, Map<String,String> classnames)Makes a copy.intgetConstantValue()Returnsconstantvalue_index.-
Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
-
-
-
Field Detail
-
tag
public static final String tag
The name of this attribute"ConstantValue".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConstantAttribute
public ConstantAttribute(ConstPool cp, int index)
Constructs a ConstantValue attribute.- Parameters:
cp- a constant pool table.index-constantvalue_indexofConstantValue_attribute.
-
-
Method Detail
-
getConstantValue
public int getConstantValue()
Returnsconstantvalue_index.
-
copy
public AttributeInfo copy(ConstPool newCp, Map<String,String> classnames)
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.
-
-