Class FieldInfo


  • public class FieldInfo
    extends java.lang.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
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldInfo​(java.io.DataInputStream input, ConstantPool constantPool)
      Read a single FieldInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAccessFlags()
      Get the access flags of the method.
      java.lang.String getName()
      Get the name of the field
      java.lang.String getType()
      Get the type of the field.
      boolean isStatic()
      If this field is static or not
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • accessFlags

        private final int accessFlags
      • name

        private final java.lang.String name
      • description

        private final java.lang.String description
    • Constructor Detail

      • FieldInfo

        FieldInfo​(java.io.DataInputStream input,
                  ConstantPool constantPool)
           throws java.io.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:
        java.io.IOException
    • Method Detail

      • 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 java.lang.String getName()
        Get the name of the field
        Returns:
        the name
      • getType

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