FieldVisitor
that generates a corresponding 'field_info' structure, as defined in the
Java Virtual Machine Specification (JVMS).
Modifier and Type | Field and Description |
---|---|
private final int | accessFlags
The access_flags field of the field_info JVMS structure. |
private int | constantValueIndex
The constantvalue_index field of the ConstantValue attribute of this field_info, or 0 if there is no ConstantValue attribute. |
private final int | descriptorIndex
The descriptor_index field of the field_info JVMS structure. |
private Attribute | firstAttribute
The first non standard attribute of this field. |
private AnnotationWriter | lastRuntimeInvisibleAnnotation
The last runtime invisible annotation of this field. |
private AnnotationWriter | lastRuntimeInvisibleTypeAnnotation
The last runtime invisible type annotation of this field. |
private AnnotationWriter | lastRuntimeVisibleAnnotation
The last runtime visible annotation of this field. |
private AnnotationWriter | lastRuntimeVisibleTypeAnnotation
The last runtime visible type annotation of this field. |
private final int | nameIndex
The name_index field of the field_info JVMS structure. |
private int | signatureIndex
The signature_index field of the Signature attribute of this field_info, or 0 if there is no Signature attribute. |
private final SymbolTable | symbolTable
Where the constants used in this FieldWriter must be stored. |
Access | Constructor and Description |
---|---|
pack-priv | FieldWriter(final SymbolTable
where the constants used in this FieldWriter must be stored. symbolTable, final int the field's access flags (see access, final String Opcodes ).the field's name. name, final String the field's descriptor (see descriptor, final String Type ).the field's signature. May be null. signature, final Object the field's constant value. May be null. constantValue)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 field into the given set of attribute prototypes. |
pack-priv int | Returns: the size in bytes of the field_info JVMS structure.Returns the size of the field_info JVMS structure generated by this FieldWriter. |
pack-priv void | putFieldInfo(final ByteVector
where the field_info structure must be put. output)Puts the content of the field_info JVMS structure generated by this FieldWriter 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 net. |
public void | visitAttribute(final Attribute
an attribute. attribute)Overrides net. |
public void | |
public AnnotationVisitor | visitTypeAnnotation(final int
a reference to the annotated type. The sort of this type reference must be
typeRef, final TypePath TypeReference#FIELD . 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 net. |
accessFlags | back to summary |
---|---|
private final int accessFlags The access_flags field of the field_info JVMS structure. This field can contain ASM specific
access flags, such as |
constantValueIndex | back to summary |
---|---|
private int constantValueIndex The constantvalue_index field of the ConstantValue attribute of this field_info, or 0 if there is no ConstantValue attribute. |
descriptorIndex | back to summary |
---|---|
private final int descriptorIndex The descriptor_index field of the field_info JVMS structure. |
firstAttribute | back to summary |
---|---|
private Attribute firstAttribute The first non standard attribute of this field. 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 field. The previous ones can be accessed with the
|
lastRuntimeInvisibleTypeAnnotation | back to summary |
---|---|
private AnnotationWriter lastRuntimeInvisibleTypeAnnotation The last runtime invisible type annotation of this field. The previous ones can be accessed
with the |
lastRuntimeVisibleAnnotation | back to summary |
---|---|
private AnnotationWriter lastRuntimeVisibleAnnotation The last runtime visible annotation of this field. The previous ones can be accessed with the
|
lastRuntimeVisibleTypeAnnotation | back to summary |
---|---|
private AnnotationWriter lastRuntimeVisibleTypeAnnotation The last runtime visible type annotation of this field. The previous ones can be accessed with
the |
nameIndex | back to summary |
---|---|
private final int nameIndex The name_index field of the field_info JVMS structure. |
signatureIndex | back to summary |
---|---|
private int signatureIndex The signature_index field of the Signature attribute of this field_info, or 0 if there is no Signature attribute. |
symbolTable | back to summary |
---|---|
private final SymbolTable symbolTable Where the constants used in this FieldWriter must be stored. |
FieldWriter | back to summary |
---|---|
pack-priv FieldWriter(final SymbolTable symbolTable, final int access, final String name, final String descriptor, final String signature, final Object constantValue) Constructs a new
|
collectAttributePrototypes | back to summary |
---|---|
pack-priv final void collectAttributePrototypes(final Attribute. Collects the attributes of this field into the given set of attribute prototypes. |
computeFieldInfoSize | back to summary |
---|---|
pack-priv int computeFieldInfoSize() Returns the size of the field_info JVMS structure generated by this FieldWriter. Also adds the names of the attributes of this field in the constant pool.
|
putFieldInfo | back to summary |
---|---|
pack-priv void putFieldInfo(final ByteVector output) Puts the content of the field_info JVMS structure generated by this FieldWriter into the given ByteVector.
|
visitAnnotation | back to summary |
---|---|
public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible) Overrides net. Doc from net. Visits an annotation of the field.
|
visitAttribute | back to summary |
---|---|
public void visitAttribute(final Attribute attribute) Overrides net. Doc from net. Visits a non standard attribute of the field. |
visitEnd | back to summary |
---|---|
public void visitEnd() Overrides net. Doc from net. Visits the end of the field. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the field have been visited.
|
visitTypeAnnotation | back to summary |
---|---|
public AnnotationVisitor visitTypeAnnotation(final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) Overrides net. Doc from net. Visits an annotation on the type of the field.
|