FileDocCategorySizeDatePackage
FieldNode.javaAPI DocGlassfish v2 API3996Thu Mar 02 11:51:16 GMT 2006oracle.toplink.libraries.asm.tree

FieldNode

public class FieldNode extends Object
A node that represents a field.
author
Eric Bruneton

Fields Summary
public int
access
The field's access flags (see {@link oracle.toplink.libraries.asm.Constants}). This field also indicates if the field is synthetic and/or deprecated.
public String
name
The field's name.
public String
desc
The field's descriptor (see {@link oracle.toplink.libraries.asm.Type Type}).
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}.
public Attribute
attrs
The non standard attributes of the field.
Constructors Summary
public FieldNode(int access, String name, String desc, Object value, Attribute attrs)
Constructs a new {@link FieldNode FieldNode} object.

param
access the field's access flags (see {@link oracle.toplink.libraries.asm.Constants}). This parameter also indicates if the field is synthetic and/or deprecated.
param
name the field's name.
param
desc the field's descriptor (see {@link oracle.toplink.libraries.asm.Type Type}).
param
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}.
param
attrs the non standard attributes of the field.

    this.access = access;
    this.name = name;
    this.desc = desc;
    this.value = value;
    this.attrs = attrs;
  
Methods Summary
public voidaccept(oracle.toplink.libraries.asm.ClassVisitor cv)
Makes the given class visitor visit this field.

param
cv a class visitor.

    cv.visitField(access, name, desc, value, attrs);