Package javassist.bytecode
Class RecordAttribute.RecordComponentInfo
- java.lang.Object
-
- javassist.bytecode.RecordAttribute.RecordComponentInfo
-
- Enclosing class:
- RecordAttribute
public static class RecordAttribute.RecordComponentInfo extends java.lang.ObjectRepresents a single record component within the Record attribute.
-
-
Constructor Summary
Constructors Constructor Description RecordComponentInfo(ConstPool cp, int nameIndex, int descriptorIndex, java.util.List<AttributeInfo> attributes)Constructs a RecordComponentInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AttributeInfo>getAttributes()Returns the list of attributes associated with the component.java.lang.StringgetDescriptor()Returns the descriptor of the component.java.lang.StringgetName()Returns the name of the component.intgetNameIndex()Returns the name Index of the component.voidsetDescriptorIndex(int index)Sets the descriptor index after renaming.voidsetNameIndex(int index)
-
-
-
Constructor Detail
-
RecordComponentInfo
public RecordComponentInfo(ConstPool cp, int nameIndex, int descriptorIndex, java.util.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 Detail
-
getNameIndex
public int getNameIndex()
Returns the name Index of the component.- Returns:
- the component name
-
getName
public java.lang.String getName()
Returns the name of the component.- Returns:
- the component name
-
getDescriptor
public java.lang.String getDescriptor()
Returns the descriptor of the component.- Returns:
- the component descriptor
-
getAttributes
public java.util.List<AttributeInfo> 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)
-
-