Package javassist.bytecode
Class RecordAttribute.RecordComponentInfo
java.lang.Object
javassist.bytecode.RecordAttribute.RecordComponentInfo
- Enclosing class:
RecordAttribute
Represents a single record component within the Record attribute.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AttributeInfo> private ConstPool(package private) int(package private) int -
Constructor Summary
ConstructorsConstructorDescriptionRecordComponentInfo(ConstPool cp, int nameIndex, int descriptorIndex, List<AttributeInfo> attributes) Constructs a RecordComponentInfo. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of attributes associated with the component.Returns the descriptor of the component.getName()Returns the name of the component.intReturns the name Index of the component.voidsetDescriptorIndex(int index) Sets the descriptor index after renaming.voidsetNameIndex(int index)
-
Field Details
-
constPool
-
nameIndex
int nameIndex -
descriptorIndex
int descriptorIndex -
attributes
-
-
Constructor Details
-
RecordComponentInfo
public RecordComponentInfo(ConstPool cp, int nameIndex, int descriptorIndex, List<AttributeInfo> attributes) Constructs a RecordComponentInfo.- Parameters:
cp- the constant poolnameIndex- the index into the constant pool of the component's namedescriptorIndex- the index into the constant pool of the component's descriptorattributes- the list of attributes associated with the component
-
-
Method Details
-
getNameIndex
public int getNameIndex()Returns the name Index of the component.- Returns:
- the component name
-
getName
Returns the name of the component.- Returns:
- the component name
-
getDescriptor
Returns the descriptor of the component.- Returns:
- the component descriptor
-
getAttributes
Returns the list of attributes associated with the component.- Returns:
- the list of AttributeInfo
-
setDescriptorIndex
public void setDescriptorIndex(int index) Sets the descriptor index after renaming.- Parameters:
index- the new descriptor index
-
setNameIndex
public void setNameIndex(int index)
-