Class ClassField

  • All Implemented Interfaces:
    VMConstants

    public final class ClassField
    extends ClassMember
    ClassField models the static and non-static fields of a class within a class file.
    • Method Detail

      • isTransient

        public boolean isTransient()
        Is the field transient?
      • access

        public int access()
        Return the access flags for the field - see VMConstants
        Specified by:
        access in class ClassMember
      • setAccess

        public void setAccess​(int newFlags)
        Update the access flags for the field - see VMConstants
        Specified by:
        setAccess in class ClassMember
      • changeName

        public void changeName​(ConstUtf8 name)
        Change the name of the field
      • changeSignature

        public void changeSignature​(ConstUtf8 newSig)
        Change the type signature of the field