Class FieldInfo

java.lang.Object
de.inetsoftware.classparser.FieldInfo

public class FieldInfo extends Object
Described a Field of a class. http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.5 http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#2877
  • Field Details

    • accessFlags

      private final int accessFlags
    • name

      private final String name
    • description

      private final String description
    • attributes

      private final Attributes attributes
  • Constructor Details

    • FieldInfo

      FieldInfo(DataInputStream input, ConstantPool constantPool) throws IOException
      Read a single FieldInfo. http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.5 http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#2877
      Parameters:
      input -
      constantPool -
      Throws:
      IOException
  • Method Details

    • getAccessFlags

      public int getAccessFlags()
      Get the access flags of the method. http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.5-200-A http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#87652
      Returns:
      the flags
    • isStatic

      public boolean isStatic()
      If this field is static or not
      Returns:
      true, if static
    • getName

      public String getName()
      Get the name of the field
      Returns:
      the name
    • getType

      public String getType()
      Get the type of the field.
      Returns:
      the type