org.objectweb.asm.tree

Class FieldNode

public class FieldNode extends MemberNode implements FieldVisitor

A node that represents a field.

Author: Eric Bruneton

Field Summary
intaccess
The field's access flags (see {@link org.objectweb.asm.Opcodes}).
Stringdesc
The field's descriptor (see {@link org.objectweb.asm.Type}).
Stringname
The field's name.
Stringsignature
The field's signature.
Objectvalue
The field's initial value.
Constructor Summary
FieldNode(int access, String name, String desc, String signature, Object value)
Constructs a new {@link FieldNode}.
Method Summary
voidaccept(ClassVisitor cv)
Makes the given class visitor visit this field.

Field Detail

access

public int access
The field's access flags (see {@link org.objectweb.asm.Opcodes}). This field also indicates if the field is synthetic and/or deprecated.

desc

public String desc
The field's descriptor (see {@link org.objectweb.asm.Type}).

name

public String name
The field's name.

signature

public String signature
The field's signature. May be null.

value

public Object value
The field's initial value. This field, which may be null if the field does not have an initial value, must be an {@link Integer}, a {@link Float}, a {@link Long}, a {@link Double} or a {@link String}.

Constructor Detail

FieldNode

public FieldNode(int access, String name, String desc, String signature, Object value)
Constructs a new {@link FieldNode}.

Parameters: access the field's access flags (see {@link org.objectweb.asm.Opcodes}). This parameter also indicates if the field is synthetic and/or deprecated. name the field's name. desc the field's descriptor (see {@link org.objectweb.asm.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 {@link Integer}, a {@link Float}, a {@link Long}, a {@link Double} or a {@link String}.

Method Detail

accept

public void accept(ClassVisitor cv)
Makes the given class visitor visit this field.

Parameters: cv a class visitor.