Class ClassFile.FieldInfo

  • Enclosing class:
    ClassFile

    public static class ClassFile.FieldInfo
    extends Object
    Representation of a "method_info" structure, as defined by JVMS7 4.5.
    • Method Detail

      • getModifierFlags

        public short getModifierFlags()
        Returns:
        The modifier flags of the field; or'ed values are the constants declared in Mod
      • getAnnotations

        public Java.Annotation[] getAnnotations()
        Returns:
        The annotations of this field
      • getName

        public String getName​(ClassFile classFile)
        Returns:
        The field's name
      • getDescriptor

        public String getDescriptor​(ClassFile classFile)
        Returns:
        The field descriptor describing this field
      • addAttribute

        public void addAttribute​(ClassFile.AttributeInfo attribute)
        Adds the given attribute to this field.