Class ClassMethod

  • All Implemented Interfaces:
    VMConstants

    public class ClassMethod
    extends ClassMember
    ClassMethod models the static and non-static methods of a class within a class file. This includes constructors and initializer code.
    • Method Detail

      • access

        public int access()
        Return the access flags for the method - 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
      • isAbstract

        public boolean isAbstract()
        Is the method abstract?
      • isNative

        public boolean isNative()
        Is the method native?
      • changeName

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

        public void changeSignature​(ConstUtf8 newSig)
        Change the type signature of the method
      • codeAttribute

        public CodeAttribute codeAttribute()
        Returns the CodeAttribute associated with this method (if any)