org.objectweb.asm.tree

Class FieldNode

public class FieldNode extends Object

A node that represents a field.

Author: Eric Bruneton

Field Summary
intaccess
The field's access flags (see {@link org.objectweb.asm.Constants}).
Attributeattrs
The non standard attributes of the field.
Stringdesc
The field's descriptor (see {@link org.objectweb.asm.Type Type}).
Stringname
The field's name.
Objectvalue
The field's initial value.
Constructor Summary
FieldNode(int access, String name, String desc, Object value, Attribute attrs)
Constructs a new {@link FieldNode FieldNode} object.
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.Constants}). This field also indicates if the field is synthetic and/or deprecated.

attrs

public Attribute attrs
The non standard attributes of the field.

desc

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

name

public String name
The field's name.

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 java.lang.Integer Integer}, a {@link java.lang.Float Float}, a {@link java.lang.Long Long}, a {@link java.lang.Double Double} or a {@link String String}.

Constructor Detail

FieldNode

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

Parameters: access the field's access flags (see {@link org.objectweb.asm.Constants}). 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 Type}). 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 java.lang.Integer Integer}, a {@link java.lang.Float Float}, a {@link java.lang.Long Long}, a {@link java.lang.Double Double} or a {@link String String}. attrs the non standard attributes of the field.

Method Detail

accept

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

Parameters: cv a class visitor.