| Modifier and Type | Field and Description |
|---|---|
| private final int | descriptorIndex
The descriptor_index field of the Record attribute. |
| private Attribute | firstAttribute
The first non standard attribute of this record component. |
| private AnnotationWriter | lastRuntimeInvisibleAnnotation
The last runtime invisible annotation of this record component. |
| private AnnotationWriter | lastRuntimeInvisibleTypeAnnotation
The last runtime invisible type annotation of this record component. |
| private AnnotationWriter | lastRuntimeVisibleAnnotation
The last runtime visible annotation of this record component. |
| private AnnotationWriter | lastRuntimeVisibleTypeAnnotation
The last runtime visible type annotation of this record component. |
| private final int | nameIndex
The name_index field of the Record attribute. |
| private int | signatureIndex
The signature_index field of the Signature attribute of this record component, or 0 if there is no Signature attribute. |
| private final SymbolTable | symbolTable
Where the constants used in this RecordComponentWriter must be stored. |
| Access | Constructor and Description |
|---|---|
| pack-priv | RecordComponentWriter(final SymbolTable
where the constants used in this RecordComponentWriter must be stored. symbolTable, final String the record component name. name, final String the record component descriptor (see descriptor, final String Type).the record component signature. May be null. signature)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | collectAttributePrototypes(final Attribute.
a set of attribute prototypes. attributePrototypesCollects the attributes of this record component into the given set of attribute prototypes. |
| pack-priv int | Returns: the size in bytes of the record_component_info of the Record attribute.Returns the size of the record component JVMS structure generated by this RecordComponentWriter. |
| pack-priv void | putRecordComponentInfo(final ByteVector
where the record_component_info structure must be put. output)Puts the content of the record component generated by this RecordComponentWriter into the given ByteVector. |
| public AnnotationVisitor | visitAnnotation(final String
the class descriptor of the annotation class. descriptor, final boolean true if the annotation is visible at runtime. visible)Overrides org. |
| public void | visitAttribute(final Attribute
an attribute. attribute)Overrides org. |
| public void | visitEnd()
Visits the end of the record component.
|
| public AnnotationVisitor | visitTypeAnnotation(final int
a reference to the annotated type. The sort of this type reference must be
typeRef, final TypePath TypeReference#CLASS_TYPE_PARAMETER, TypeReference#CLASS_TYPE_PARAMETER_BOUND or TypeReference#CLASS_EXTENDS. See
TypeReference.the path to the annotated type argument, wildcard bound, array element type, or
static inner type within 'typeRef'. May be null if the annotation targets
'typeRef' as a whole. typePath, final String the class descriptor of the annotation class. descriptor, final boolean true if the annotation is visible at runtime. visible)Overrides org. |
| descriptorIndex | back to summary |
|---|---|
| private final int descriptorIndex The descriptor_index field of the Record attribute. | |
| firstAttribute | back to summary |
|---|---|
| private Attribute firstAttribute The first non standard attribute of this record component. The next ones can be accessed with
the Warning this list stores the attributes in the reverse order of their visit.
firstAttribute is actually the last attribute visited in | |
| lastRuntimeInvisibleAnnotation | back to summary |
|---|---|
| private AnnotationWriter lastRuntimeInvisibleAnnotation The last runtime invisible annotation of this record component. The previous ones can be
accessed with the | |
| lastRuntimeInvisibleTypeAnnotation | back to summary |
|---|---|
| private AnnotationWriter lastRuntimeInvisibleTypeAnnotation The last runtime invisible type annotation of this record component. The previous ones can be
accessed with the | |
| lastRuntimeVisibleAnnotation | back to summary |
|---|---|
| private AnnotationWriter lastRuntimeVisibleAnnotation The last runtime visible annotation of this record component. The previous ones can be accessed
with the | |
| lastRuntimeVisibleTypeAnnotation | back to summary |
|---|---|
| private AnnotationWriter lastRuntimeVisibleTypeAnnotation The last runtime visible type annotation of this record component. The previous ones can be
accessed with the | |
| nameIndex | back to summary |
|---|---|
| private final int nameIndex The name_index field of the Record attribute. | |
| signatureIndex | back to summary |
|---|---|
| private int signatureIndex The signature_index field of the Signature attribute of this record component, or 0 if there is no Signature attribute. | |
| symbolTable | back to summary |
|---|---|
| private final SymbolTable symbolTable Where the constants used in this RecordComponentWriter must be stored. | |
| RecordComponentWriter | back to summary |
|---|---|
| pack-priv RecordComponentWriter(final SymbolTable symbolTable, final String name, final String descriptor, final String signature) Constructs a new
| |
| collectAttributePrototypes | back to summary |
|---|---|
| pack-priv final void collectAttributePrototypes(final Attribute. Collects the attributes of this record component into the given set of attribute prototypes. | |
| computeRecordComponentInfoSize | back to summary |
|---|---|
| pack-priv int computeRecordComponentInfoSize() Returns the size of the record component JVMS structure generated by this RecordComponentWriter. Also adds the names of the attributes of this record component in the constant pool.
| |
| putRecordComponentInfo | back to summary |
|---|---|
| pack-priv void putRecordComponentInfo(final ByteVector output) Puts the content of the record component generated by this RecordComponentWriter into the given ByteVector.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible) Overrides org. Doc from org. Visits an annotation of the record component.
| |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(final Attribute attribute) Overrides org. Doc from org. Visits a non standard attribute of the record component. | |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the record component. This method, which is the last one to be called, is used to inform the visitor that everything have been visited.
| |
| visitTypeAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitTypeAnnotation(final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) Overrides org. Doc from org. Visits an annotation on a type in the record component signature.
| |