public class FieldNode
extends org.objectweb.asm.FieldVisitor
Modifier and Type | Field and Description |
---|---|
int |
access
The field's access flags (see
Opcodes ). |
java.util.List<org.objectweb.asm.Attribute> |
attrs
The non standard attributes of this field. * May be null.
|
java.lang.String |
desc
The field's descriptor (see
Type ). |
java.util.List<AnnotationNode> |
invisibleAnnotations
The runtime invisible annotations of this field.
|
java.util.List<TypeAnnotationNode> |
invisibleTypeAnnotations
The runtime invisible type annotations of this field.
|
java.lang.String |
name
The field's name.
|
java.lang.String |
signature
The field's signature.
|
java.lang.Object |
value
The field's initial value.
|
java.util.List<AnnotationNode> |
visibleAnnotations
The runtime visible annotations of this field.
|
java.util.List<TypeAnnotationNode> |
visibleTypeAnnotations
The runtime visible type annotations of this field.
|
Constructor and Description |
---|
FieldNode(int api,
int access,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
java.lang.Object value)
Constructs a new
FieldNode . |
FieldNode(int access,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
java.lang.Object value)
Constructs a new
FieldNode . |
Modifier and Type | Method and Description |
---|---|
void |
accept(org.objectweb.asm.ClassVisitor classVisitor)
Makes the given class visitor visit this field.
|
void |
check(int api)
Checks that this field node is compatible with the given ASM API version.
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String descriptor,
boolean visible) |
void |
visitAttribute(org.objectweb.asm.Attribute attribute) |
void |
visitEnd() |
org.objectweb.asm.AnnotationVisitor |
visitTypeAnnotation(int typeRef,
org.objectweb.asm.TypePath typePath,
java.lang.String descriptor,
boolean visible) |
public int access
Opcodes
). This field also indicates if
the field is synthetic and/or deprecated.public java.lang.String name
public java.lang.String desc
Type
).public java.lang.String signature
public java.lang.Object value
Integer
, a Float
, a Long
, a Double
or
a String
.public java.util.List<AnnotationNode> visibleAnnotations
public java.util.List<AnnotationNode> invisibleAnnotations
public java.util.List<TypeAnnotationNode> visibleTypeAnnotations
public java.util.List<TypeAnnotationNode> invisibleTypeAnnotations
public java.util.List<org.objectweb.asm.Attribute> attrs
public FieldNode(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.Object value)
FieldNode
. Subclasses must not use this constructor. Instead,
they must use the FieldNode(int, int, String, String, String, Object)
version.access
- the field's access flags (see Opcodes
). This parameter
also indicates if the field is synthetic and/or deprecated.name
- the field's name.descriptor
- the field's descriptor (see Type
).signature
- the field's signature.value
- the field's initial value. This parameter, which may be null if the field
does not have an initial value, must be an Integer
, a Float
, a Long
, a Double
or a String
.java.lang.IllegalStateException
- If a subclass calls this constructor.public FieldNode(int api, int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.Object value)
FieldNode
. Subclasses must not use this constructor.api
- the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4
or Opcodes.ASM5
.access
- the field's access flags (see Opcodes
). This parameter
also indicates if the field is synthetic and/or deprecated.name
- the field's name.descriptor
- the field's descriptor (see Type
).signature
- the field's signature.value
- the field's initial value. This parameter, which may be null if the field
does not have an initial value, must be an Integer
, a Float
, a Long
, a Double
or a String
.public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)
visitAnnotation
in class org.objectweb.asm.FieldVisitor
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, java.lang.String descriptor, boolean visible)
visitTypeAnnotation
in class org.objectweb.asm.FieldVisitor
public void visitAttribute(org.objectweb.asm.Attribute attribute)
visitAttribute
in class org.objectweb.asm.FieldVisitor
public void visitEnd()
visitEnd
in class org.objectweb.asm.FieldVisitor
public void check(int api)
api
- an ASM API version. Must be one of Opcodes.ASM4
, Opcodes.ASM5
or
Opcodes.ASM6
.public void accept(org.objectweb.asm.ClassVisitor classVisitor)
classVisitor
- a class visitor.