org.objectweb.asm.tree
类 FieldNode

java.lang.Object
  继承者 org.objectweb.asm.tree.MemberNode
      继承者 org.objectweb.asm.tree.FieldNode
所有已实现的接口:
FieldVisitor

public class FieldNode
extends MemberNode
implements FieldVisitor

A node that represents a field.

作者:
Eric Bruneton

字段摘要
 int access
          The field's access flags (see Opcodes).
 String desc
          The field's descriptor (see Type).
 String name
          The field's name.
 String signature
          The field's signature.
 Object value
          The field's initial value.
 
从类 org.objectweb.asm.tree.MemberNode 继承的字段
attrs, invisibleAnnotations, visibleAnnotations
 
构造方法摘要
FieldNode(int access, String name, String desc, String signature, Object value)
          Constructs a new FieldNode.
 
方法摘要
 void accept(ClassVisitor cv)
          Makes the given class visitor visit this field.
 
从类 org.objectweb.asm.tree.MemberNode 继承的方法
visitAnnotation, visitAttribute, visitEnd
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.objectweb.asm.FieldVisitor 继承的方法
visitAnnotation, visitAttribute, visitEnd
 

字段详细信息

access

public int access
The field's access flags (see Opcodes). This field also indicates if the field is synthetic and/or deprecated.


name

public String name
The field's name.


desc

public String desc
The field's descriptor (see Type).


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 Integer, a Float, a Long, a Double or a String.

构造方法详细信息

FieldNode

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

参数:
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.
desc - 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.
方法详细信息

accept

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

参数:
cv - a class visitor.


Copyright © 2013. All Rights Reserved.