Klasse Field

Alle implementierten Schnittstellen:
Node

public final class Field extends FieldOrMethod
This class represents the field info structure, i.e., the representation for a variable in the class. See JVM specification for details.
Version:
$Id: Field.java,v 1.6 2009/09/15 03:33:52 aclement Exp $
Autor:
M. Dahm
  • Felddetails

    • NoFields

      public static final Field[] NoFields
  • Konstruktordetails

    • Field

      public Field(Field c)
    • Field

      public Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)
  • Methodendetails

    • accept

      public void accept(ClassVisitor v)
    • getConstantValue

      public final ConstantValue getConstantValue()
      Gibt zurück:
      constant value associated with this field (may be null)
    • toString

      public final String toString()
      Return string representation close to declaration format, eg: 'public static final short MAX = 100'
      Setzt außer Kraft:
      toString in Klasse Object
    • getType

      public Type getType()
      return the type of the field